bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

It should be possible to get the bazelisk release number.

Open aiuto opened this issue 2 years ago • 1 comments

It would save debugging time if I could do something like bazelisk bazeliskversion to print the version (and build date) of bazelisk I am using. That makes it easy to see if you are behind on features and need to update or not.

aiuto avatar Apr 19 '22 14:04 aiuto

bazelisk version already shows the Bazelisk version - does this help?

$ curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-darwin-arm64
$ chmod +x bazelisk-darwin-arm64 
$ ./bazelisk-darwin-arm64 version
Bazelisk version: v1.11.0
Build label: 5.1.1
Build target: bazel-out/darwin_arm64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Apr 8 15:58:49 2022 (1649433529)
Build timestamp: 1649433529
Build timestamp as int: 1649433529

philwo avatar Apr 20 '22 04:04 philwo