]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix windows test failures
authorJay Conrod <jayconrod@google.com>
Fri, 8 Nov 2019 18:05:56 +0000 (13:05 -0500)
committerJay Conrod <jayconrod@google.com>
Mon, 11 Nov 2019 17:53:51 +0000 (17:53 +0000)
commit70be4819a47263055040d6beb5c0b1b31487f52c
treea0d2f013ad6efeb05c031c24af652095470121d5
parent275a7be3da9fded6ec71c92633bca30caf6dd93b
cmd/go: fix windows test failures

search.CleanPatterns now preserves backslash separators in absolute
paths in Windows. These had resulted in inconsistent error messages.

search.MatchPackagesInFS is now more accepting of patterns with
backslashes. It was inconsistent before.

Several tests are fixed to work with Windows (mostly to match slashes
or backslashes).

Fixes #25300

Change-Id: Ibbf9ccd145353f7e3d345205c6fcc01d7066d1c2
Reviewed-on: https://go-review.googlesource.com/c/go/+/206144
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modfetch/codehost/git_test.go
src/cmd/go/internal/search/search.go
src/cmd/go/testdata/script/build_trimpath.txt
src/cmd/go/testdata/script/mod_getx.txt
src/cmd/go/testdata/script/mod_list_dir.txt
src/cmd/go/testdata/script/mod_prefer_compatible.txt
src/cmd/go/testdata/script/mod_sumdb_file_path.txt
src/cmd/go/testdata/script/mod_vendor_auto.txt
src/cmd/go/testdata/script/version.txt