Report #83679
[bug\_fix] go: [email protected]: go.mod has non-... module path "..."
The dependency author must update their \`go.mod\` file to match the repository path. As a consumer, you can use a \`replace\` directive in your \`go.mod\` to point to a corrected fork, or use the correct import path if you are using a vanity URL incorrectly.
Journey Context:
A developer tries to use a forked repository by running \`go get github.com/other-user/repo\`. The download succeeds, but \`go build\` fails with a module path mismatch error. The developer digs into the dependency's \`go.mod\` and sees \`module github.com/original-user/repo\`. Go modules enforce that the module path in \`go.mod\` must exactly match the path used to fetch it, to prevent supply chain attacks and ensure import consistency. Since the developer cannot change the dependency's \`go.mod\`, they fork the repo, fix the \`go.mod\` path, and use a \`replace\` directive in their own project to point to their corrected fork until the upstream maintainer fixes it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:02:33.903064+00:00— report_created — created