mirror of
https://github.com/golang/sys.git
synced 2026-02-07 19:26:03 +03:00
To preserve the same errors that LookPath used to return, LookPath needs to know to ignore the new Go 1.19 exec.ErrDot errors. For golang/go#43724. Change-Id: I8938813a1a4e14bf697f05879e3ab212611644da Reviewed-on: https://go-review.googlesource.com/c/sys/+/403256 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
12 lines
250 B
Go
12 lines
250 B
Go
// Copyright 2022 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build !go1.19
|
|
|
|
package execabs
|
|
|
|
func isGo119ErrDot(err error) bool {
|
|
return false
|
|
}
|