bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

Major version with wildcard takes considerable amount of time

Open limdor opened this issue 3 years ago • 0 comments

When running bazelisk version takes in my machine 19 seconds when specifying 5.x in the .bazelversion file. When running bazelisk version takes in my machine 0.05 seconds when specifying 5.2.0 in the .bazelversion file. (the equivalent to 5.x at the moment of creating this ticket.

This makes in practice not usable the usage of .x because it takes too much time.

I tried that on Linux with bazelisk 1.12.0

.bazelversion
5.x

limdor@M87:~/ps/bf/ide-integration$ time bazel version
Bazelisk version: v1.12.0
Build label: 5.2.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 7 16:02:26 2022 (1654617746)
Build timestamp: 1654617746
Build timestamp as int: 1654617746

real    0m19.235s
user    0m0.449s
sys     0m0.459s

.bazelversion
5.2.0

limdor@M87:~/ps/bf/ide-integration$ time bazel version
Bazelisk version: v1.12.0
Build label: 5.2.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 7 16:02:26 2022 (1654617746)
Build timestamp: 1654617746
Build timestamp as int: 1654617746

real    0m0.054s
user    0m0.006s
sys     0m0.012s

limdor avatar Jul 25 '22 07:07 limdor