Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: mod init doesn't handle replacements well #34509
What version of Go are you using (
@bcmills I believe replace is written to support mirroring. The code assumes the import paths are ideally mirrors.
I don't think there's a direct way to find out whether the same hash presents in the source as well as the actual path. In case the paths are mirrors, we may not want to lose the revision info by putting v0.0.0 as the default version.