avoid touch toolchain directive in go.mod #34563
trim21
started this conversation in
Suggest an Idea
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
It's really PITA that how go (go itself, not go manager of renovatebot) handle toolchain directive in go.mod.
When you are using a new go version on go.mod with toolchain, it's very likely go will update the toolchain directive on
go get
. and it cause renovatebot update a toolchian in go.mod unexpectedly.Which doesn't actually make sence becuase it's a
depType=toolchain
instead of expecteddepType=require
The possible solution are:
renovate/lib/modules/manager/gomod/artifacts.ts
Line 454 in 72a5af8
go get ./...
command withgo get ./... toolchain@${current toolchain}
version so go wont't change it.For example:
Beta Was this translation helpful? Give feedback.
All reactions