Skip to content

Introduce bazeliskVersion command#763

Merged
fweikert merged 1 commit intobazelbuild:masterfrom
valco1994:master
Jan 23, 2026
Merged

Introduce bazeliskVersion command#763
fweikert merged 1 commit intobazelbuild:masterfrom
valco1994:master

Conversation

@valco1994
Copy link
Copy Markdown
Contributor

Currently, bazelisk supports version command which is shared with Bazel itself. During the handling of this command, bazelisk prints its version and forwards the command line further to Bazel (downloading it if it's not already downloaded).

As described in issues #137 and #440, there are scenarios when users are only interested in the bazelisk version, and don't want to download and run Bazel as a side effect.

For such scenarios, I suggest adding a separate command. It allows us to preserve the current behavior and to keep bazelisk being a transparent wrapper around Bazel, and at the same time provide a functionality for those who need it.


Fix #137 and #440.

@valco1994
Copy link
Copy Markdown
Contributor Author

@fweikert, what do you think about such an approach?

@fweikert
Copy link
Copy Markdown
Member

Thank you!

@fweikert fweikert merged commit 296161a into bazelbuild:master Jan 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support checking bazelisk version without downloading bazel

2 participants