Report #42841
[bug\_fix] go: github.com/some/[email protected]: invalid version: unknown revision v1.2.3
Ensure the Git tag 'v1.2.3' actually exists and has been pushed to the remote repository. Run 'git push origin v1.2.3'.
Journey Context:
A developer cuts a new release by tagging it locally with 'git tag v1.2.3' and pushes the commit to the main branch using 'git push origin main'. They then update their downstream project to use v1.2.3 via 'go get github.com/some/[email protected]'. The command fails with unknown revision. They check their local Git, see the tag, and are confused. They dig into Go proxy environment variables, trying GONOSUMCHECK or GOFLAGS, thinking the proxy is misconfigured. Finally, they realize 'git push origin main' does not push tags by default. The tag only exists locally. Pushing the tag with 'git push origin v1.2.3' resolves the issue because the Go module proxy/remote cannot find a tag that was never uploaded.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:22:37.195258+00:00— report_created — created