Closed matts1 closed 11 months ago
Thanks for opening this issue @matts1.
As requested, I've made Skyscope assume the latest version of Bazel if parsing bazel version
fails. I've also added a new SKYSCOPE_BAZEL_BIN
environment variable that you can use to specify a custom Bazel binary:
SKYSCOPE_BAZEL_BIN=/path/to/bazel-dev skyscope import
Update to v0.3.2 to try it out. Let me know if you have any problems.
Is your feature request related to a problem? Please describe. Bazel has a bazel-dev.sh script which essentially compiles bazel and then runs the dev version of bazel that you just built.
However,
bazel version
on a dev version is missing the "Build label" entry that skyscope attempts to parse for:I tried to get it working, but I was unable to compile skyscope at head for reasons I think relate to nix, so I couldn't implement the feature myself. It appeared to be permission issues that I'm guessing is related to the fact that this is a work machine with work policies on it, and compiling with sudo gave me a different error, so I gave up on it.
Describe the solution you'd like I would like to add two features to skyscope:
bazel version
succeeds but outputs nothing, it should assume it's a dev version (or the latest version)Describe alternatives you've considered A
--bazel-version
flag could also work