Report #51110
[bug\_fix] go: module ... found, but does not contain package ...
Verify the import path for typos, ensure the sub-package exists at the required version in \`go.mod\`, or run \`go get @latest\` to update the module version.
Journey Context:
A developer imports a specific sub-package from a popular library, such as \`github.com/aws/aws-sdk-go-v2/service/s3\`. The build fails, claiming the module doesn't contain the package. The developer checks GitHub in their browser and clearly sees the \`service/s3\` directory exists. They fall down a rabbit hole checking their GOPATH and Go version. The breakthrough comes when they check their \`go.mod\` file: the required version of \`aws-sdk-go\` is an older release that didn't have the \`v2\` structure or the specific service package yet. Because Go modules fetch the exact version specified in \`go.mod\`, it was looking at an older codebase that lacked the sub-package. Updating the dependency with \`go get github.com/aws/aws-sdk-go-v2/service/s3@latest\` brings in the version where the package exists.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:16:41.579954+00:00— report_created — created