Skip to content

Commit

Permalink
fixup! Envtest Binary Version Manager Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
DirectXMan12 committed Apr 28, 2021
1 parent a70e98d commit 4c19778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/setup-envtest/env/env.go
Expand Up @@ -448,8 +448,6 @@ func (e *Env) PathMatches(value string) bool {
e.Platform.Arch = "*"
e.manualPath = value
return true

return false
}

// versionFromPathName checks if the given path's last component looks like one
Expand Down
2 changes: 2 additions & 0 deletions tools/setup-envtest/main.go
Expand Up @@ -102,6 +102,8 @@ func setupEnv(globalLog logr.Logger, version string) *envp.Env {
case "", "latest":
env.Version = versions.LatestVersion
case "latest-on-disk":
// we sort by version, latest first, so this'll give us the latest on
// disk (as per the contract from env.List & store.List)
env.Version = versions.AnyVersion
env.NoDownload = true
default:
Expand Down

0 comments on commit 4c19778

Please sign in to comment.