Is it a good idea to use tool directives? #609
-
|
Given Go 1.24 has added tool directives, we can now "pin" the version of Orchestrion in a go mod file, which avoids having to use My question is around are there any downsides to running orchestrion in this manner, when it comes to using CI and developer experiences that could help ensure a reproducible run, when comparing to the GitHub Action that performs an install and updates various go environment flags? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
I would definitely prefer using a The ONE thing I am not sure about yet, is how |
Beta Was this translation helpful? Give feedback.
I would definitely prefer using a
tooldirective, and have considered making this the default behavior oforchestrion pinwhen thego.moddirective hasgo 1.24.0(or later)... It's definitely a "cleaner" flow thango run github.com/DataDog/orchestrion go build, etc... and I am a long time believer that everything around your app should be in yourgo.modfile (dependencies, test dependencies, tool dependencies, linters, etc...).The ONE thing I am not sure about yet, is how
tooldirectives interact with the toolchain version... Orchestrion needs to be built with a version of the standard library that is at least as recent as yourgodirective indicates (for it needs to parse the.gofiles …