Skip to content

Commit

Permalink
Fix accidental variable shadowing that broke version resolution. (baz…
Browse files Browse the repository at this point in the history
  • Loading branch information
fweikert authored Oct 16, 2020
1 parent f9e8cf8 commit dba981e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ func RunBazelisk(args []string, repos *Repositories) (int, error) {
return -1, fmt.Errorf("could not parse Bazel fork and version: %v", err)
}

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

0 comments on commit dba981e

Please sign in to comment.