diff --git a/internal/discover/legacy.go b/internal/discover/legacy.go index 7f4c5276..0d0d8e38 100644 --- a/internal/discover/legacy.go +++ b/internal/discover/legacy.go @@ -39,7 +39,7 @@ var _ Discover = (*legacy)(nil) func NewLegacyDiscoverer(logger *logrus.Logger, root string) (Discover, error) { d := legacy{ logger: logger, - lookup: lookup.NewExecutaleLocator(logger, root), + lookup: lookup.NewExecutableLocator(logger, root), } return &d, nil diff --git a/internal/lookup/executable.go b/internal/lookup/executable.go index be7577ff..3109c440 100644 --- a/internal/lookup/executable.go +++ b/internal/lookup/executable.go @@ -35,8 +35,8 @@ type executable struct { file } -// NewExecutaleLocator creates a locator to fine executable files in the path. A logger can also be specified. -func NewExecutaleLocator(logger *log.Logger, root string) Locator { +// NewExecutableLocator creates a locator to fine executable files in the path. A logger can also be specified. +func NewExecutableLocator(logger *log.Logger, root string) Locator { pathEnv := os.Getenv(envPath) paths := filepath.SplitList(pathEnv)