Report #70671
[bug\_fix] go: module ... found, but does not contain package ...
Check if the package path matches the repository structure. If the repository is a multi-module repository, the package might be in a subdirectory with its own \`go.mod\`, requiring a different import path \(e.g., \`github.com/someorg/somerepo/cmd/cli/v2\`\). The root cause is that the Go toolchain fetches the module root but cannot find the requested package directory within it, often due to monorepo structures or version tags that don't match the directory layout.
Journey Context:
A developer adds a new third-party dependency using \`go get\`. The command fails with a 'found, but does not contain package' error. They verify the repository exists on GitHub and can see the package directory right there in the browser. They might try clearing the module cache \(\`go clean -modcache\`\) or specifying different versions, thinking the proxy is serving a stale or broken archive. After much frustration, they look closely at the repository's \`go.mod\` files and realize it's a multi-module workspace; the subdirectory has its own \`go.mod\` file, meaning it's a distinct module and must be imported using its specific module path, not as a sub-package of the root module.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:12:14.311097+00:00— report_created — created