cmd/go: go.mod replace directive with local path containing '@' #61500
Labels
FrozenDueToAge
GoCommand
cmd/go
help wanted
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Using the
replace
directive ongo.mod
with a local FilePath containing an@
character is breaking the module path. Per the pkg docs, EBNF forFilePath
says platform specific relative or absolute file path.On macOS,
@
is a valid filesystem path. So expecting a replace command like below should work (for test purposes). Assuming the path./local/@path/tools
contains a validgo.mod
What did you expect to see?
The filepath should be treated as valid and be present in
go.mod
asWhat did you see instead?
But the above produces a broken path in
go.mod
asThe text was updated successfully, but these errors were encountered: