Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Problem you have encountered: Go1.24 adds functionality to manage tool versions with
go tool
which resultstool
lines being added to thego.mod
file.When attempting to publish a Go module to the GCP artifact registry go module repo with
gcloud artifacts go upload
the following error occurs:What you expected to happen: I expected the module to be uploaded successfully.
Steps to reproduce:
go mod init my.org/mypackage
go get -tool golang.org/x/tools/cmd/stringer
go mod tidy
gcloud artifacts go upload --project=myproject --repository=mygorepo --location=myrepolocation --module-path=my.org/mypackage --version=v1.0.0
Other information (workarounds you have tried, documentation consulted, etc): Background on the go tool functionalityhttps://go.dev/doc/modules/managing-dependencies#tools