bazelbuild / bazelisk

A user-friendly launcher for Bazel.
Apache License 2.0
1.95k stars 300 forks source link

Use cached executable if no network available #570

Open kooooootb opened 2 months ago

kooooootb commented 2 months ago

Is it possible or are there any downsides of using cached bazel executable if available when there is no network connection? Im frequently programming abroad with weak to no internet connection and I also dont want to lock my bazel version because one of the bazelisk's purposes is to use the latest version of bazel

If it helps, now if i run it with no internet i will get smth like: 2024/04/11 10:03:43 could not download Bazel: could not resolve the version 'latest' to an actual version number: unable to determine latest version: could not list Bazel versions in GCS bucket: could not list GCS objects at https://www.googleapis.com/storage/v1/b/bazel/o?delimiter=/: could not fetch https://www.googleapis.com/storage/v1/b/bazel/o?delimiter=/: Get "https://www.googleapis.com/storage/v1/b/bazel/o?delimiter=/": dial tcp: lookup www.googleapis.com on [::1]:53: read udp [::1]:36292->[::1]:53: read: connection refused