Report #6018
[bug\_fix] go: github.com/user/[email protected]: invalid version: unknown revision v1.0.0
Clear the local module cache with \`go clean -modcache\` to remove negative cache entries. If the tag was just created, wait for the Go module proxy to index it, or temporarily bypass the proxy using \`GOPROXY=direct\`.
Journey Context:
A developer tries to add a dependency using \`go get github.com/user/[email protected]\`. The command fails with 'unknown revision v1.0.0'. The developer checks GitHub and clearly sees the \`v1.0.0\` tag. The root cause is often a caching issue with the Go module proxy \(proxy.golang.org\) where the newly created tag hasn't propagated yet, or the local module cache has a stale negative cache entry \(a previous failed attempt to fetch it\). The fix is to first clear the local module cache using \`go clean -modcache\` to remove the negative cache. If it still fails, wait a few minutes for the proxy to index the new tag, or bypass the proxy temporarily using \`GOPROXY=direct\` to fetch directly from the VCS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T22:52:41.990154+00:00— report_created — created