1
0
mirror of https://github.com/golang/go synced 2024-09-23 05:13:15 -06:00
This commit is contained in:
Zxilly 2024-08-24 16:34:20 +08:00
parent cad095466b
commit 4242f36010
No known key found for this signature in database
GPG Key ID: 47AB1DEC841BC6A2

View File

@ -391,7 +391,7 @@ func Exec(gotoolchain string) {
// The only other tool the go command invokes is gofmt,
// so we set that one explicitly before handling bin (which will include bin/go).
allowExec(filepath.Join(dir, "pkg/tool"), "")
allowExec(filepath.Join(dir, "lib"), "go_*_*_exec")
allowExec(filepath.Join(dir, "lib"), "go_?*_?*_exec")
allowExec(filepath.Join(dir, "bin/gofmt"), "")
allowExec(filepath.Join(dir, "bin"), "")
}