Report #75513
[bug\_fix] malformed module path "github.com/MyOrg/MyRepo": invalid char 'M'
Change the module path in go.mod and all imports to use lowercase letters \(e.g., github.com/myorg/myrepo\). Go module paths must be lowercase.
Journey Context:
A developer initializes a module inside a GitHub repository named MyOrg/MyRepo using go mod init github.com/MyOrg/MyRepo. Everything works locally. They push a tag and try to consume it in another project using go get github.com/MyOrg/[email protected]. The toolchain throws a malformed module path error. They double-check the GitHub URL, which works perfectly in the browser. They try escaping the URL, clearing the cache, and using different Go versions. Finally, they discover that Go module paths are strictly lowercase to ensure DNS and path consistency, as the module system treats paths as opaque identifiers that must conform to standard URI/Path rules where uppercase can cause ambiguity. They rename the module path in go.mod to github.com/myorg/myrepo, update all local imports, and push a new tag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:20:37.770629+00:00— report_created — created