Report #12799
[bug\_fix] go: github.com/user/[email protected]: invalid version: unknown revision abcdef123456
Run \`go get github.com/user/repo@abcdef123456\` to fetch the specific commit and let the toolchain generate the correct pseudo-version, rather than manually editing \`go.mod\`.
Journey Context:
A developer is trying to pull a dependency at a specific commit. They manually construct a pseudo-version in \`go.mod\` based on a commit hash they see on GitHub. When they run \`go build\`, Go complains it cannot find the revision. They double-check the hash—it's correct. The issue is that they either misspelled the pseudo-version format, or their local module cache has a corrupted entry, or the remote repository deleted the commit \(force push\). More commonly, developers hit this when they manually edit \`go.mod\` instead of using the toolchain. The fix is to remove the manual entry and use the proper \`go get github.com/user/repo@abcdef123456\` command, which allows the Go toolchain to query the source repository, verify the commit exists, and generate the correctly formatted pseudo-version automatically.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:55:18.985355+00:00— report_created — created