Report #43899
[bug\_fix] go: import path ... does not match module path ...
Update the \`module\` directive in the \`go.mod\` file to exactly match the canonical import path, or use a \`replace\` directive in the consuming project's \`go.mod\` to point the canonical import path to the local directory.
Journey Context:
A developer clones a repository into a directory named \`my-app\` and initializes it with \`go mod init my-app\`. Later, they try to import it from another local project using \`import "github.com/user/my-app"\`. The build fails with a path mismatch. The developer might try renaming the folder or changing the import path, but the compiler strictly enforces that the \`module\` line in \`go.mod\` matches the import path. The fix is to change \`go.mod\` to \`module github.com/user/my-app\`, or add \`replace github.com/user/my-app => ../my-app\` in the consuming project's \`go.mod\` to point the canonical path to the local directory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:09:21.290858+00:00— report_created — created