Report #31623
[bug\_fix] module ... found, but does not contain package ...
Update the version of the module in go.mod to a version that actually contains the sub-package, or correct the typo in the import path.
Journey Context:
A developer imports a sub-package, e.g., \`github.com/lib/v2/newpkg\`, which was introduced in a recent commit. They run \`go mod tidy\`, but it fails. The developer checks GitHub and sees the folder exists. The root cause is Go's Minimal Version Selection \(MVS\) and the module proxy. The go.mod currently requires \`github.com/lib/v2 v2.0.0\`. The proxy downloads the v2.0.0 zip file, which was cut before \`newpkg\` was added, so the package isn't found inside that specific version. The fix works because updating the required version in go.mod \(e.g., to v2.1.0\) forces the toolchain to download the newer version's zip file, which contains the requested sub-package.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:28:05.579300+00:00— report_created — created