Skip to content

Commit dba981e

Browse files
authored
Fix accidental variable shadowing that broke version resolution. (#186)
Fixes #185
1 parent f9e8cf8 commit dba981e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/core.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ func RunBazelisk(args []string, repos *Repositories) (int, error) {
8080
return -1, fmt.Errorf("could not parse Bazel fork and version: %v", err)
8181
}
8282

83-
resolvedBazelVersion, downloader, err := repos.ResolveVersion(bazeliskHome, bazelFork, bazelVersion)
83+
var downloader DownloadFunc
84+
resolvedBazelVersion, downloader, err = repos.ResolveVersion(bazeliskHome, bazelFork, bazelVersion)
8485
if err != nil {
8586
return -1, fmt.Errorf("could not resolve the version '%s' to an actual version number: %v", bazelVersion, err)
8687
}

0 commit comments

Comments
 (0)