How can I make go pick the right version when using 'dev'? #876
-
I've got a project with a What's a good way to tell this specific project of mine to use Go 1.17? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
dependencies:
go.dev: ~1.17 # or, e.g., =1.17.2 looking at Lines 57 to 61 in 7a488fd go.dev: '*' , but doesn't parse go.mod. personally, i'm torn as to whether that is strictly a good move. while go.mod does define a go version, it's often possible it work with other go versions, and i can definitely see developers wanting to be able to switch/test more easily. usually, when in doubt, we err on the side of user-configurability.
what do you think? is the ability to set complex version requirements using |
Beta Was this translation helpful? Give feedback.
-
Good question..i iwait |
Beta Was this translation helpful? Give feedback.
looking at
pkgx/src/utils/devenv.ts
Lines 57 to 61 in 7a488fd
go.dev: '*'
, but doesn't parse go.mod. personally, i'm torn as to whether that is strictly a good move. whilego.mod
does define a go version, it's often possible it work with other go versions, and i can definitely see developers wanting to be able to switch/test more easily. usually, when in doubt, we err on the side of user-configurability.what do you think? is the ability to set complex version requirements using
pkgx.…