Skip to content

Commit

Permalink
Fix documentation about release servers (#184)
Browse files Browse the repository at this point in the history
In most cases Bazel binaries are fetched from GCS now, with the exception of forks (still on Github).
  • Loading branch information
fweikert authored Oct 12, 2020
1 parent 8cf79c1 commit f9e8cf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ Additionally, a few special version names are supported for our official release

## Where does Bazelisk get Bazel from?

By default Bazelisk retrieves the list of Bazel versions from the Bazel GitHub project. If this fails, Bazelisk queries the official Bazel release server instead.
In both cases the actual binaries are downloaded from the release server.
By default Bazelisk retrieves Bazel releases, release candidates and binaries built at green commits from Google Cloud Storage.

As mentioned in the previous section, the `<FORK>/<VERSION>` version format allows you to use your own Bazel fork instead of working with the official servers:
As mentioned in the previous section, the `<FORK>/<VERSION>` version format allows you to use your own Bazel fork hosted on GitHub:

If you want to create a fork with your own releases, you have to follow the naming conventions that we use in `bazelbuild/bazel` for the binary file names.
The URL format looks like `https://github.com/<FORK>/bazel/releases/download/<VERSION>/<FILENAME>`.
Expand Down
1 change: 1 addition & 0 deletions bazelisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
func main() {
gcs := &repositories.GCSRepo{}
gitHub := repositories.CreateGitHubRepo(core.GetEnvOrConfig("BAZELISK_GITHUB_TOKEN"))
// Fetch releases, release candidates and Bazel-at-commits from GCS, forks from GitHub
repos := core.CreateRepositories(gcs, gcs, gitHub, gcs, true)

exitCode, err := core.RunBazelisk(os.Args[1:], repos)
Expand Down

0 comments on commit f9e8cf8

Please sign in to comment.