-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide special ".local" module name to be used for local-only modules #3625
Comments
For the sake of completeness, RFC 2606 reserves I think it would make sense for us to consistently treat all five of the above as local-only module TLDs as you describe. Doing only one, but not the others, feels a bit odd. I think our examples could then use The only quirk is whether, per RFC 6762, treating |
It's also worth noting that Go did this by reserving the module prefixes (not TLDs!) |
To throw some things in, cue actually supports this by doing subdomains of localhost. It also aligns with the definitions of https://datatracker.ietf.org/doc/html/rfc6761#section-6.3
So there is the option that rather than special names, perhaps just the default namespacing that way, and documentation supporting it may be helpful. Perhaps even cue mod init, rather than generate 'cue.example', can use the folder and local host. Eg if the default could be like running this
That would help newcomers avoid the 'choosing names when I don't know the significance is hard' problem.
Also there may be a risk with '.local', afaik that's more for multicast DNS, it's different than localhost, which will always be this machine. If the module 'namespacing' system wants to use DNS concepts, it needs to use them the same way, or it could get confusing. |
Currently
cue mod init
uses the module pathcue.example
by default.This is problematic for a few reasons:
We propose that a special module path,
.local
is used for this instead.This is:
For #3620.
The text was updated successfully, but these errors were encountered: