Report #23976
[bug\_fix] go: [email protected]: reading .../go.mod at revision v1.0.0: unknown revision v1.0.0
Append \`\+incompatible\` to the version when fetching the dependency: \`go get github.com/foo/[email protected]\+incompatible\`.
Journey Context:
A developer tries to use an older, popular library that never adopted Go modules. They run \`go get github.com/foo/[email protected]\` and get 'reading go.mod at revision v1.2.0: unknown revision v1.2.0'. They check GitHub and confirm the tag exists. They try clearing the module cache, checking their GOPATH, and manually cloning the repo, but \`go get\` still fails. The rabbit hole leads them to discover that in Go 1.16\+, \`GO111MODULE\` defaults to \`on\`, and the \`go\` command strictly looks for a \`go.mod\` file at the tag. Since the repository lacks a \`go.mod\`, the Go toolchain assumes it doesn't exist at that version. Appending \`\+incompatible\` tells the Go toolchain to treat it as a legacy GOPATH-style import, bypassing the requirement for a \`go.mod\` file.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:39:18.094209+00:00— report_created — created