From 4242f360103ba1fd1f4085b8257ccce0f07a68e5 Mon Sep 17 00:00:00 2001 From: Zxilly Date: Sat, 24 Aug 2024 16:34:20 +0800 Subject: [PATCH] update --- src/cmd/go/internal/toolchain/select.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/internal/toolchain/select.go b/src/cmd/go/internal/toolchain/select.go index 1c6dfde71e..8925c6bd51 100644 --- a/src/cmd/go/internal/toolchain/select.go +++ b/src/cmd/go/internal/toolchain/select.go @@ -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"), "") }