mirror of
https://github.com/golang/go
synced 2024-11-23 00:10:07 -07:00
n
Change-Id: Ibeb7ff0def24354435a3784dceb22245463a21f1
This commit is contained in:
parent
197d6e445c
commit
b7431d6eeb
@ -333,9 +333,9 @@ type Cmd struct {
|
|||||||
// and https://go.dev/issue/43724 for more context.
|
// and https://go.dev/issue/43724 for more context.
|
||||||
lookPathErr error
|
lookPathErr error
|
||||||
|
|
||||||
// cacheLookExtensions cache the result of calling lookExtensions,
|
// cachedLookExtensions caches the result of calling lookExtensions.
|
||||||
// set it only on windows.
|
// This is only used on Windows.
|
||||||
cacheLookExtensions string
|
cachedLookExtensions string
|
||||||
}
|
}
|
||||||
|
|
||||||
// A ctxResult reports the result of watching the Context associated with a
|
// A ctxResult reports the result of watching the Context associated with a
|
||||||
@ -434,8 +434,7 @@ func Command(name string, arg ...string) *Cmd {
|
|||||||
// We may need to add a filename extension from PATHEXT
|
// We may need to add a filename extension from PATHEXT
|
||||||
// or verify an extension that is already present.
|
// or verify an extension that is already present.
|
||||||
// Since the path is absolute, its extension should be unambiguous
|
// Since the path is absolute, its extension should be unambiguous
|
||||||
// and independent of cmd.Dir, and we can go ahead and update cmd.Path to
|
// and independent of cmd.Dir, and we can go ahead and cache the lookup now.
|
||||||
// reflect it.
|
|
||||||
//
|
//
|
||||||
// Note that we cannot add an extension here for relative paths, because
|
// Note that we cannot add an extension here for relative paths, because
|
||||||
// cmd.Dir may be set after we return from this function and that may cause
|
// cmd.Dir may be set after we return from this function and that may cause
|
||||||
|
Loading…
Reference in New Issue
Block a user