cmd/go: go mod vendor changes go.mod #33435
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This started happening after I added a dependency on github.com/lestrrat-go/jwx in my go.mod:
The import in my program is
github.com/lestrrat-go/jwx/jwk
.Interestingly there is this as well:
Unfortunately this is happening in a big closed source repo. I tried to come up with a small reproducer but I'm not seeing the behaviour changes there.
What did you expect to see?
go.mod not to be changed when running
go mod vendor
orgo build
after runninggo mod tidy
What did you see instead?
go.mod had lines added
More details
I found #31612 which sounds similar but lacks details. And #30857 which sounds similar but was fixed.
The text was updated successfully, but these errors were encountered: