Report #45363
[bug\_fix] go: module ... found, but does not contain package ...
Verify the exact import path matches the package's location within the module, or ensure the module version being fetched actually contains the package \(it might have been removed, moved, or is part of a nested module\).
Journey Context:
A developer tries to import a sub-package from a popular monorepo, like \`example.com/monorepo/blob\`. They run \`go get example.com/monorepo/blob\`, but the tooling complains the package is missing. The developer falls into a rabbit hole of checking their internet connection, clearing the module cache \(\`go clean -modcache\`\), and verifying the package exists on GitHub. The issue persists. The root cause is often that the module's \`go.mod\` is at the repository root, but the specific package path was moved, deleted, or is part of a nested module with a different \`go.mod\`. Alternatively, the version resolution picked an older tag where the sub-package didn't exist yet. The fix is to check the module's source code at the specific version resolved by \`go.mod\` to confirm the package exists, and then specify the correct import path or a newer version tag that includes the package.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:36:50.410736+00:00— report_created — created