Report #51623
[bug\_fix] go: go.mod file indicates module X, but import path is Y
Update the \`module\` directive in \`go.mod\` to match the canonical import path, and update all internal imports in the codebase to use the new module prefix.
Journey Context:
A developer forks a repository or renames it on GitHub. They clone it locally and run \`go build\`, only to be hit with a module path mismatch error. They look at \`go.mod\` and see \`module github.com/original/repo\`, but their imports say \`github.com/forked/repo\`. They try just changing the \`go.mod\` file, but then the existing imports break because they still reference the old path. They realize Go uses the module path as the root for all relative imports within the module. They perform a project-wide find-and-replace of the import paths to match the new \`go.mod\` module path. The build succeeds because Go's module system strictly enforces that the import path of a package within a module must be prefixed by the module's own path.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:08:45.556200+00:00— report_created — created