-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let Bazelisk correctly separate releases and metadata from Bazel forks.
This fixes an issue where Bazelisk would accidentally reuse a cached binary or "latest releases" JSON from fork A, even when the version label refers fork B. Also make the documentation a bit clearer and remove outdated info from it.
- Loading branch information
Showing
3 changed files
with
98 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
rm -rf "$HOME/Library/Caches/bazelisk" | ||
env -u USE_BAZEL_VERSION ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="latest" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="0.28.0" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="last_green" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="last_downstream_green" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="last_rc" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="bazelbuild/latest" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="bazelbuild/0.27.0" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="philwo/latest" ./bin/bazelisk-darwin-amd64 version | ||
USE_BAZEL_VERSION="philwo/0.25.0" ./bin/bazelisk-darwin-amd64 version |