Report #8794
[bug\_fix] go: github.com/pkg/[email protected]: reading github.com/pkg/errors/go.mod at revision v0.9.1: unknown revision v0.9.1
Run \`go get github.com/pkg/[email protected]\` \(or the specific missing package and version\) to fetch the module directly into the local cache, or run \`GOPROXY=direct go mod tidy\` to bypass the proxy cache and fetch from the source VCS.
Journey Context:
A developer runs \`go mod tidy\` or \`go build\` and encounters an 'unknown revision' error for a dependency that definitely exists and has worked before. They check GitHub and the tag is there. They clear their module cache, but it still fails. The rabbit hole leads them to realize this happens intermittently or specifically on CI. The root cause is often a stale or corrupted Go module proxy cache \(proxy.golang.org\) that has an outdated list of tags for a specific repository, or a temporary network issue where the proxy failed to resolve the tag. By explicitly running \`go get @\`, the toolchain is forced to attempt a direct resolution and update the local cache. Alternatively, setting \`GOPROXY=direct\` bypasses the public proxy entirely, forcing the Go toolchain to communicate directly with GitHub to resolve the tag, proving the tag exists and successfully downloading the module.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:23:43.592870+00:00— report_created — created