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 building code outside of GOPATH for go module support #1914

Closed
jtnord opened this issue Nov 23, 2018 · 2 comments
Closed

support building code outside of GOPATH for go module support #1914

jtnord opened this issue Nov 23, 2018 · 2 comments

Comments

@jtnord
Copy link

jtnord commented Nov 23, 2018

If I have a project that is using Go Modules (as opposed to the old GOPATH layout) I would still like to be able to use goagen. Alas it seems goagen will not work at all unless you are using the legacy GOPATH layout.

Expected Behavior

goagen app -d ${PACKAGE_NAME}/${DESIGN_DIR} -o pkg/controller works with no error.

Actual Behavior

goagen errors with

Go source file "C:\workarea\source\github\someorg\some-repo\goagen053437807\design" not in Go workspace, adjust GOPATH C:\PATH\to\go

Steps to Reproduce the Problem (including complete and simple design if relevant)

Specifications

  • goa Version: goagen v1.3.1
  • Platform (Linux/Windows etc.): Windows 10
@raphael
Copy link
Member

raphael commented Nov 25, 2018

Thank you for the report. At this point I'm focusing on v2 and will make sure it supports Go module. I'd be happy to accept a PR that added Go module support to v1 though.

@raphael
Copy link
Member

raphael commented Feb 11, 2019

Go modules are now supported in v1 (thank you @tchssk!). Please open a new issue if things don't work out as expected.

@goadesign goadesign deleted a comment from stale bot Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants