FiloSottile/mkcert

Module path should be canonical

jmooring opened this issue · 2 comments

See https://go.dev/ref/mod#module-path.

Current:

module filippo.io/mkcert

Should be:

module github.com/FiloSottile/mkcert

Why?

$ go install github.com/FiloSottile/mkcert@latest
go: github.com/FiloSottile/mkcert@latest: github.com/FiloSottile/mkcert@v1.4.4: parsing go.mod:
	module declares its path as: filippo.io/mkcert
	        but was required as: github.com/FiloSottile/mkcert

Yes, I know I can install with go install filippo.io/mkcert@latest, but that was not what I expected based on my experience installing other Go programs.

bep commented

The big upside with "vanity paths" like filippo.io/mkcert is that they are host agnostic (which is a great thing if you move your stuff from GitHub to GitLab or something) -- which in some sense makes them ... more canonical?

I suppose this is really just a documentation issue, because you don't know the "more canonical" (vanity) import path until you've tried the "less canonical" import path.