Report #65522
[bug\_fix] invalid version: unknown revision /vX.Y.Z
Ensure the git tag actually exists in the remote repository. If the tag was just pushed, wait a few minutes for the Go module proxy cache to update, or use GOPROXY=direct to fetch directly from the source, or run go get @ to bypass the missing tag.
Journey Context:
A developer creates a new module, commits it, and pushes a v1.0.0 git tag to GitHub. They immediately try to use it in another project via go get github.com/myorg/[email protected]. The command fails with 'unknown revision'. The developer checks GitHub and sees the tag is there. The issue is that the default GOPROXY \(proxy.golang.org\) caches module versions, and it might not have scraped the new tag yet, or the developer's local git cache is stale. The developer sets GOPROXY=direct to bypass the proxy and fetch directly from GitHub, which succeeds. Alternatively, they wait a few minutes for the proxy to index it. They learn that for immediate consumption of newly tagged modules, GOPROXY=direct or using a specific commit hash is necessary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:27:36.703481+00:00— report_created — created