diff --git a/internal/shims/shims.go b/internal/shims/shims.go index 27472395c..b516a4a7c 100644 --- a/internal/shims/shims.go +++ b/internal/shims/shims.go @@ -85,6 +85,12 @@ func FindExecutable(conf config.Config, shimName, currentDirectory string) (path return "", plugins.Plugin{}, "", false, nil } + if !found { + if _, ok := SystemExecutableOnPath(conf, shimName); ok { + versions, found, err = resolve.ToolVersions{Versions: []string{"system"}, Directory: currentDirectory}, true, nil + } + } + if found { tempVersions := toolversions.Intersect(versions.Versions, shimToolVersion.Versions)