Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: mod init and mod edit unable to import module paths missing a dot #29620
Overview and related issues
This issue seems to be related to #26510. But in this case, not the actual module I am working with is "dotless," but a dependency.
What version of Go are you using (
The fact that we do not convert replacement paths from
Dotless paths are in general reserved for the Go standard library. They do not work with
For internal Git servers, my recommendation is to give the server a proper, resolvable two-level DNS name rather than relying on
Thanks @bcmills. Regarding
can you please point me to a place where this (new to me) rule is defined? I cannot find it in any of these locations:
I do understand that using what the documentation calls “remote import paths” is an encouraged convention. If, for whatever reason, having non-resolvable or dotless names as import path prefixes is discouraged from now on, I'd love to see it officially documented somewhere.
For the record, an actual related issue seems to be #27503.