Files
Jesse DuffieldandStefan Haller 678a2a90cb Add cli/go-gh/v2 and cli/safeexec vendor dependencies
Required for authenticating with GitHub's API using the token
stored by the gh CLI.
2026-04-01 09:13:55 +02:00

18 lines
263 B
Go

//go:build !windows && go1.19
// +build !windows,go1.19
package safeexec
import (
"errors"
"os/exec"
)
func LookPath(file string) (string, error) {
path, err := exec.LookPath(file)
if errors.Is(err, exec.ErrDot) {
return path, nil
}
return path, err
}