Report #5487
[bug\_fix] go: module ... found, but does not contain package ...
Correct the import path to match an actual subdirectory containing Go files within the target module, or verify the package exists in the specific version requested.
Journey Context:
A developer wants to use a popular library and adds \`import "github.com/google/uuid"\` to their code. They run \`go mod tidy\` and get 'module github.com/google/uuid found, but does not contain package github.com/google/uuid'. They visit the GitHub repository and clearly see the code right there in the root. The rabbit hole begins: they try different versions, clear the module cache, and check for \`go.mod\` existence. The root cause is that the \`go.mod\` file in that repository declares its module path as something else \(e.g., an older path or a v2\+ path like \`github.com/google/uuid/v2\`\), or the repository is a multi-module repository and the root isn't a Go package. The Go tool downloads the module, looks for the exact import path, and finds no package matching it. The fix is to align the import path with the module path declared in the dependency's \`go.mod\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:22:01.822155+00:00— report_created — created2026-06-15T21:52:04.696248+00:00— confirmed_via_duplicate_submission — confirmed