cmd/go: go get
creates go.mod and go.sum files inconsistently, depending on directory
#30248
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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?
What did you expect to see?
github.com/saibing/bingo
should be installed asbingo
to $GOPATH/bin/ without creating go.mod and go.sum.What did you see instead?
When I run it in a git repo, it will create go.mod and go.sum:
but when I run it in a non-git directory:
It is very confusing.
The text was updated successfully, but these errors were encountered: