Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support work with go modules #113

Open
Kipriz opened this issue Apr 12, 2019 · 5 comments
Open

Support work with go modules #113

Kipriz opened this issue Apr 12, 2019 · 5 comments

Comments

@Kipriz
Copy link

Kipriz commented Apr 12, 2019

Right now, it is not possible to run gen for projects that are not under GOPATH
It would be great to work outside of GOPATH using go modules.

@seaskyways
Copy link

Please this is very needed

@vzool
Copy link

vzool commented Sep 22, 2020

Hi @Kipriz, I just created a bash script that build and copy gen command inside your project. So, you can just type gen on the root of your project folder. I hope it help you out. Thanks

@vzool
Copy link

vzool commented Sep 22, 2020

Haha, after creating the bash script, I test the tool itself and it doesn't support modules at all. :(
Error message example:
main.go:7:4: could not import example-app/app (can't find import: "example-app/app")

@alexec
Copy link

alexec commented Oct 26, 2020

gen appears to be unusable with any Gomodules project. As everyone can be expected to move to Gomodules, this really needs to be fixed.

@rickb777
Copy link

rickb777 commented Oct 28, 2020

[shameless plug]-> You could try rickb777/runtemplate instead.
(also rickb777/collection for predetermined collection types)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants