Report #104239
[bug\_fix] go: github.com/example/[email protected]: reading https://proxy.golang.org/github.com/example/lib/@v/v1.2.3.mod: 404 not found
Check if the tag v1.2.3 exists in the repository. If it was removed or never created, use an existing valid version. For private modules, ensure the GOPRIVATE or GONOSUMCHECK environment variables are set correctly.
Journey Context:
I added a new dependency to a Go service by specifying \`v1.2.3\` in go.mod, but the build failed with a 404 error. I assumed the version existed because a colleague had mentioned it. After digging into the proxy logs, I realized the tag had been deleted during a force-push. The Go proxy caches modules but will return 404 if the version never existed. I spent time checking network issues and proxy settings before actually looking at the remote repository tags. The fix was to update go.mod to point to a valid version, then run \`go mod tidy\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-19T20:05:58.735694+00:00— report_created — created