Add support for previous versions
I read #39 and it's useful. But we could support different versions. I read the documentation and we will need to duplicate some files but it could be useful.
I know that force to update it's good but 0.28.0 broke the compatibility with IntelliJ plugin and there was no easy way to go back to 0.27.x.
Do you think this is worth it? Or should we just maintain one to force the users to get the last version?
+1
you can do this with pure homebrew:
brew tap bazelbuild/tap
brew extract bazel bazelbuild/tap --version X.X.X
This does not work anymore.
See output:
$ brew extract bazel bazelbuild/tap --version 3.4.1
==> Searching repository history
Error: bazel: Calling `cellar` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bazel.rb:9
see similar issue https://github.com/aws/aws-sam-cli/issues/2803
I asked on the bazel slack and I got directed towards installing with bazelisk also see more info on the bazelisk github page 🎉
It then can be used just like bazel but it picks up the version from different potential places. Seems pretty neat! Also can be installed with brew and other ways.
It is still not a fix for the tap erroring out though. I would be curious what the fix for that is. 🤔
@jvmncs is there something I missed? maybe my environment is odd 🤔. Does it work on your machine? let me know if you have any ideas 😄