Report #29121
[bug\_fix] go: github.com/Azure/[email protected]: module github.com/Azure/[email protected] found, but does not contain package github.com/azure/azure-sdk-go
Correct the casing in the import path to exactly match the module path and repository URL \(e.g., change \`github.com/azure/...\` to \`github.com/Azure/...\`\).
Journey Context:
A developer tries to import a package from a well-known GitHub repository. They type the import path in lowercase out of habit. When they run \`go build\`, Go reports that the module was found, but the package does not exist within it. The developer verifies the package exists on GitHub and clears their module cache, suspecting a corrupt download. However, the issue persists. The root cause is that Go module paths are case-sensitive, and the module's \`go.mod\` declares its path with specific casing \(e.g., \`github.com/Azure\`\). Because the import path \(\`github.com/azure\`\) doesn't match the module path prefix exactly, Go treats it as a non-existent package within the module. Correcting the casing in the import statement resolves the build.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:16:28.150090+00:00— report_created — created