mirror of https://github.com/golang/go.git
Caching the invocation of lookExtensions on an absolute path in Command
and reusing the cached result in Start is only viable if Cmd.Path isn't
set to a different value after Command returns.
For #66586.
For #68314.
Fixes #68331.
Change-Id: I57007850aca2011b11344180c00faded737617b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/596875
Reviewed-by: qiu laidongfeng2 <2645477756@qq.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| internal/fdtest | ||
| bench_test.go | ||
| dot_test.go | ||
| env_test.go | ||
| example_test.go | ||
| exec.go | ||
| exec_linux_test.go | ||
| exec_other_test.go | ||
| exec_plan9.go | ||
| exec_posix_test.go | ||
| exec_test.go | ||
| exec_unix.go | ||
| exec_unix_test.go | ||
| exec_windows.go | ||
| exec_windows_test.go | ||
| internal_test.go | ||
| lp_linux_test.go | ||
| lp_plan9.go | ||
| lp_test.go | ||
| lp_unix.go | ||
| lp_unix_test.go | ||
| lp_wasm.go | ||
| lp_windows.go | ||
| lp_windows_test.go | ||
| read3.go | ||