Report #60897
[bug\_fix] go: github.com/example/[email protected]: invalid version: unknown revision abcdef123456
Run \`go get github.com/example/pkg@latest\` or \`go get github.com/example/pkg@\` to replace the pseudo-version with a valid version or update the pseudo-version. The root cause is that the git commit referenced by the pseudo-version in \`go.mod\` no longer exists \(e.g., the upstream repository force-pushed or deleted the branch/commit\).
Journey Context:
A developer's CI build suddenly fails with an 'unknown revision' error for a dependency. The build worked yesterday. The developer checks the \`go.mod\` and sees a \`v0.0.0-...\` pseudo-version. They try \`go mod tidy\` and \`go mod download\`, but the error persists. They check the upstream repository and realize the maintainer force-pushed the \`main\` branch, rewriting the git history and invalidating the commit hash. The Go module proxy \(like proxy.golang.org\) might have cached the \`go.mod\`, but the actual source code zip cannot be fetched because the commit is gone from GitHub. The fix is to update the dependency to a valid commit or tag using \`go get github.com/example/pkg@main\`, which resolves the latest commit, generates a new pseudo-version, and updates \`go.mod\` to a revision that actually exists.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:41:57.932827+00:00— report_created — created