Report #38180
[bug\_fix] go: github.com/user/[email protected]: invalid version: unknown revision v1.2.3
Ensure the Git tag is pushed to the remote repository, or bypass the Go module proxy by setting \`GOPROXY=direct\` or \`GOPRIVATE\`.
Journey Context:
A developer cuts a release by creating a \`v1.2.3\` tag locally and pushing the commit, but forgets to push the tag itself \(\`git push --tags\`\). They update their client application to require \`v1.2.3\` and run \`go mod tidy\`, which fails with 'unknown revision v1.2.3'. They verify the commit is on GitHub but don't realize the tag is missing. Alternatively, if they did push the tag, the default Go module proxy \(\`proxy.golang.org\`\) might not have cached it yet due to eventual consistency or privacy settings. The fix is first ensuring the tag is actually pushed to the remote. If it is, and the proxy is the issue, they can run \`GOPROXY=direct go mod tidy\` to fetch directly from the VCS, or set \`GOPRIVATE=github.com/user/repo\` to skip the proxy for private or newly tagged repositories.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:33:51.903707+00:00— report_created — created