bazelbuild / vim-bazel

Vim support for Bazel
Apache License 2.0
147 stars 25 forks source link

Add a Readme section for Bazelisk users #17

Open dzintars opened 3 years ago

dzintars commented 3 years ago

Hi, all. Thank you for this plugin. Today came across issue that Bazel binary cant be found by this plugin. That was because i was using plain alias bazel='bazelisk' in my ~/.zshrc. The fix of this was just a simple sudo ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel. I think this could augment the readme of this plugin pretty well.

dzintars commented 3 years ago

Alternative is just to rename bazelisk binary to bazel, but... it's less explicit.

dbarnett commented 3 years ago

Yeah, symlink looks like a decent workaround, and the plugin could have an explicit way to configure the path to the bazel executable. Note I recently added 7d816323aa for a similar override at command invocation time, but overriding at that level is probably not well-suited to the bazelisk case.

Would you mind suggesting some phrasing of the explanations you'd want to see in the README and/or vim help?