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

V3: The version of goa specified in go.mod is ignored and rewritten #2181

Closed
ikawaha opened this issue Jul 6, 2019 · 1 comment
Closed

Comments

@ikawaha
Copy link
Contributor

ikawaha commented Jul 6, 2019

According to The go blog: Using Go modules, go get changes the required version of a dependency (or adds a new dependency).

Since goa gen (or goa example) executes go get at runtime,
even if the goa version is specified in the go.mod file, it is ignored and rewritten.

Isn't this behavior causing confusion? There is also a problem that the latest
goa specified by the latest commit number can not be used.

Example:

before
go.mod

module github.com/ikawaha/calc

go 1.12

require (
...snip...
        goa.design/goa/v3 v3.0.3-0.20190704022140-85024ebc66dc  // latest version
)

after goa gen/example

$ goa gen calc/design
module github.com/ikawaha/calc

go 1.12

require (
...snip...
        goa.design/goa/v3 v3.0.2
)
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

2 participants