Report #49033
[bug\_fix] go: github.com/foo/[email protected]: invalid version: unknown revision v1.2.3
Run \`GOPROXY=direct go get github.com/foo/[email protected]\` to bypass the Go module proxy cache, or wait for the proxy cache to expire. Ensure the tag actually exists in the upstream repository.
Journey Context:
A developer creates a tag \`v1.2.3\` in their GitHub repository and pushes it. They immediately run \`go get github.com/foo/[email protected]\` in their application, but it fails with 'unknown revision'. The developer verifies the tag exists on GitHub. The issue is that the default Go module proxy \(\`proxy.golang.org\`\) caches the list of versions for a module. If the module was never fetched before, the proxy might take time to sync, or if a previous request was made, it might have cached a negative result. Bypassing the proxy using \`GOPROXY=direct\` forces the Go toolchain to fetch directly from the source repository, instantly recognizing the new tag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:47:13.558066+00:00— report_created — created