bazelbuild / bazelbuild/bazelisk

Use cached executable if no network available

Open
#570 1 comment 1 reaction 0 assignees View on GitHub
help wanted P2 type: feature request
Dominant language
Go
Stars
2.7k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Bazelisk resolves the requested version and downloads the Bazel executable, especially the `latest` lookup and existing executable cache. Check how network failures are reported and define when a cached executable may be selected; done means offline invocation works without unexpectedly changing the requested version behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.