]> Cypherpunks repositories - gostls13.git/commit
cmd/go: ignore '@' when cleaning local and absolute file path args
authorJay Conrod <jayconrod@google.com>
Wed, 23 Oct 2019 17:47:36 +0000 (13:47 -0400)
committerJay Conrod <jayconrod@google.com>
Wed, 23 Oct 2019 18:41:38 +0000 (18:41 +0000)
commit7833302a6258a65bc17526b54347601df5ff1c5e
treea06c0b5f59351d7eb8ee2e0bd14f472e6da5461e
parent67fb5530f07ae77a5e2fe6b8f5dcf3305e117460
cmd/go: ignore '@' when cleaning local and absolute file path args

Since CL 194600, search.CleanPaths preserves characters after '@' in
each argument. This was done so that paths could be cleaned while
version queries were preserved. However, local and absolute file paths
may contain '@' characters.

With this change, '@' is treated as a normal character by
search.CleanPaths in local and absolute paths.

Fixes #35115

Change-Id: Ia7d37e0a2737442d4f1796cc2fc3a59237a8ddfe
Reviewed-on: https://go-review.googlesource.com/c/go/+/202761
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/search/search.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/mod_fs_patterns.txt