Report #84760
[bug\_fix] go: import path ... does not match module path ...
Ensure the \`module\` directive in \`go.mod\` exactly matches the import path used by the consuming code, and that the repository tag matches the module path.
Journey Context:
A developer creates a new repository under a GitHub organization, e.g., \`github.com/org/newproject\`, but in their \`go.mod\` they wrote \`module newproject\`. When they try to import it in another project using \`import "github.com/org/newproject"\`, the build fails. They check the code, everything looks fine, but they keep getting a path mismatch error. The rabbit hole involves realizing that Go uses the \`module\` directive in \`go.mod\` as the prefix for all import paths within that module. Changing \`go.mod\` to \`module github.com/org/newproject\` fixes it because the compiler can now resolve the import path to the module's root.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:51:43.229685+00:00— report_created — created