Report #29950
[bug\_fix] module ... found, but does not contain package ...
Verify the package path appended to the module path is correct and exists in the requested version. Check if the package was moved or removed in the specific version being imported, and update the module version or correct the import path.
Journey Context:
A developer tries to import a sub-package of a module, but the sub-package does not exist in the version they pulled. They run go build and get the module found but does not contain package error. They spend hours checking their network and GOPROXY settings, thinking the download failed. Finally, they check the repository on GitHub at the specific tag listed in go.mod and realize the sub-directory for that package does not exist in that release. They either update the module version to one where the package exists, or correct the import path typo. The root cause is that Go successfully downloaded the module but could not find the requested package directory within it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:39:42.145939+00:00— report_created — created