]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go/internal/modload: treat \ as a path separator instead of a shell special character
authorSataQiu <shidaqiu2018@gmail.com>
Thu, 15 Apr 2021 15:39:30 +0000 (23:39 +0800)
committerBryan C. Mills <bcmills@google.com>
Tue, 27 Apr 2021 21:16:55 +0000 (21:16 +0000)
commit30002e665658b4b2c147caaee6bf7734042952e8
tree0ebd3c532935634521efe6c8d184f98f1efe2d49
parentb9dfaf77f55fb00173ae18b0dac9d43e7e5855c1
cmd/go/internal/modload: treat \ as a path separator instead of a shell special character

According to the code comment, \ should be treated as a path separator.
See fileNameOK in golang.org/x/mod/module/module.go.

Change-Id: I05e05246005191ecccfecf46848aba5cb1359956
Reviewed-on: https://go-review.googlesource.com/c/go/+/310429
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Robert Findley <rfindley@google.com>
src/cmd/go/internal/modload/init.go