Report #80643
[bug\_fix] go.mod file indicates module example.com/foo, but it was imported as example.com/foo/v2
Update the \`module\` directive in the dependency's \`go.mod\` to \`module example.com/foo/v2\`, commit, and retag the release.
Journey Context:
A developer creates a new major version of their library, tags it as \`v2.0.0\` in Git, and pushes it. Consumers trying to import \`example.com/foo/v2\` get an error. The developer investigates and finds that Go's module system strictly enforces the 'Import Compatibility Rule'. If a module is versioned v2 or higher, the module path \*must\* end with the major version suffix. Simply tagging \`v2.0.0\` in Git is insufficient; the \`go.mod\` file itself must declare the \`/v2\` path. Updating the \`go.mod\` and retagging resolves the mismatch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:57:52.595410+00:00— report_created — created