Report #1971
[bug\_fix] go: module ...@abc123: invalid version: unknown revision ...
Use a valid pseudo-version format \(e.g., \`v0.0.0-20231025152300-abc123def456\`\) or a valid semantic version tag that exists in the repository. Root cause: The Go module system strictly maps versions to VCS tags. If a requested version tag does not exist in the repository, or if a raw commit hash is used without proper pseudo-version formatting, Go cannot resolve the module version.
Journey Context:
A developer wants to use a specific untagged commit of a dependency. They manually edit their \`go.mod\` file, adding \`require github.com/foo/bar abc123def456\`. When they run \`go mod tidy\`, Go rejects it with 'invalid version: unknown revision abc123def456'. They check the repository and confirm the commit exists. Confused, they try \`go get github.com/foo/bar@abc123def456\`. The Go toolchain automatically translates the commit hash into a valid pseudo-version format \(\`v0.0.0-20231025152300-abc123def456\`\) and updates the \`go.mod\` file. This works because Go's module system strictly requires semantic versions that map to VCS tags, and pseudo-versions are the canonical way to reference untagged commits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T09:18:53.387451+00:00— report_created — created