Report #8599
[bug\_fix] go: module ... found, but does not contain package ...
Check if the package path matches the actual directory structure in the repository, ensure the package has been pushed to the remote repository, and verify the version tag includes the package.
Journey Context:
A developer creates a new sub-package in their monorepo, pushes the commit, and tags a new release. When they try to import it in another project using \`go get\`, they get an error that the module is found but the package is missing. They might repeatedly re-tag the release or clear the module cache. The root cause is usually one of two things: either the new commit/tag hasn't been pushed to the remote yet \(often developers forget \`git push --tags\`\), or the import path has a typo. The Go module proxy caches the tag, and if the directory didn't exist at the tagged commit, the proxy returns a 404 for the package. Pushing the correct commit and tagging a \*new\* version \(since tags are immutable in the proxy\) fixes it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:51:58.293557+00:00— report_created — created