bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

Support bazel-watcher (iBazel)

Open sandervalstar opened this issue 5 years ago • 5 comments

Are there any plans to support using bazel-watcher through bazelisk?

Adding something like a "--watch" option to bazelisk would be awesome in my opinion.

I'd be happy to try and contribute it myself if given a few pointers on what the solution should look like :)

sandervalstar avatar Jul 03 '19 18:07 sandervalstar

Hey,

sorry for not following up on this earlier. I just tried to use bazel-watcher with Bazelisk (installed on my PATH as ~/bin/bazel) and it seems to work fine.

What exactly is the problem and what needs to be done here? Is this issue about some incompatibility between bazel-watcher and Bazelisk, or is it a feature request to better integrate bazel-watcher functionality with Bazelisk? :)

philwo avatar Dec 12 '19 16:12 philwo

It might be useful to have bazel-watcher read an env var like IBAZEL_BINARY so you could say IBAZEL_BINARY=bazelisk for those who don't have bazelisk installed as bazel on their machine. Don't think that would require any changes on the bazelisk front though.

gibfahn avatar Jan 03 '20 13:01 gibfahn

Related to https://github.com/bazelbuild/bazel-watcher/issues/339

zoidyzoidzoid avatar Feb 14 '20 10:02 zoidyzoidzoid

There is maybe alternative option here - rather than adding a --watch flag to bazelisk itself, we could have bazelisk also manage ibazel installation. E.g. having a .ibazelversion file, have bazelisk also install a binary called ibazelisk that just downloads and runs the correct version if ibazel, in the same way it runs bazel.

For bonus points, we could also actually install the a symlink for ibazel in the same way it now installs a symlink for bazel, so with npm i -g @bazel/bazelisk you have effectively installed ibazel and bazel with one command.

lewish avatar May 04 '20 16:05 lewish

bump

ghost avatar Oct 16 '23 20:10 ghost