Report #52370
[bug\_fix] go: github.com/foo/[email protected]: reading github.com/foo/bar/go.mod at revision v1.2.3: unknown revision v1.2.3
Verify the exact tag name in the upstream repository and correct the version in \`go.mod\` or \`go get\` command. The root cause is that the requested version tag does not exist in the VCS repository, often due to a typo in the version number, the tag being deleted/recreated, or the tag existing only locally and not being pushed to the remote.
Journey Context:
A developer manually updates a dependency version in their \`go.mod\` file to \`v1.2.3\` based on a colleague's verbal request, then runs \`go mod tidy\`. The command fails with \`unknown revision v1.2.3\`. The developer assumes the corporate Go module proxy \(ATHENS\) is down or lagging, and spends significant time bypassing the proxy with \`GONOSUMCHECK\` and \`GOFLAGS=-insecure\`. They eventually check the upstream GitHub repository's releases page and discover the tag is actually \`v1.2.4\` \(or the colleague forgot to push the tag\). The Go toolchain relies strictly on VCS tags to resolve module versions; if the tag doesn't exist remotely, the download fails. Correcting the version in \`go.mod\` to the actual remote tag resolves the issue immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:23:40.148349+00:00— report_created — created