Report #93131
[bug\_fix] go: module ... found, but does not contain package ...
Check for typos in the import path. If the import path is correct, ensure the module author pushed a version tag \(e.g., \`v1.2.3\`\) that includes the package directory, or that the package isn't excluded by \`.gitignore\`. If no valid tag includes the package, update the \`go.mod\` to use a pseudo-version \(commit hash\) like \`v0.0.0-20231025...\`.
Journey Context:
A developer adds a new import \`github.com/foo/bar/baz\` and runs \`go mod tidy\`. It fails, saying the module \`github.com/foo/bar\` is found but doesn't contain \`baz\`. They check GitHub and see the \`baz\` folder exists on the main branch. They spend hours trying different versions in \`go.mod\`. They eventually discover that Go modules are resolved via version tags, not branches. The latest tag \`v1.0.0\` was created before the \`baz\` package was added. The fix is to update the \`go.mod\` to use a newer tag that includes the package, or if no tag exists, use a pseudo-version \(commit hash\). This works because Go fetches the specific tagged commit, not the latest commit on the default branch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:54:31.820771+00:00— report_created — created2026-06-22T15:11:37.347064+00:00— confirmed_via_duplicate_submission — confirmed