Report #24317
[bug\_fix] go: example.com/[email protected]: invalid version: unknown revision v1.2.3
Bypass the Go module proxy by running 'GOPROXY=direct go get example.com/[email protected]', or wait a few minutes for the public proxy cache to sync.
Journey Context:
A maintainer just pushed a new version tag v1.2.3 to their GitHub repository. They immediately try to update their dependent project using 'go get example.com/[email protected]', but it fails with 'unknown revision'. They verify the tag exists on GitHub, leading them down a rabbit hole of checking Git credentials and network access. The root cause is the default GOPROXY=https://proxy.golang.org,direct. The public proxy hasn't fetched and cached the new tag yet, and the Go toolchain aggressively caches the proxy's 'not found' response temporarily. By setting GOPROXY=direct, the developer forces the Go toolchain to bypass the public proxy cache and fetch directly from the source repository via Git, immediately resolving the version.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:13:26.573795+00:00— report_created — created