homebrew-tap icon indicating copy to clipboard operation
homebrew-tap copied to clipboard

Add support for previous versions

Open BraisGabin opened this issue 6 years ago • 5 comments

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?

BraisGabin avatar Jul 27 '19 14:07 BraisGabin

+1

thinker0 avatar Aug 07 '19 03:08 thinker0

you can do this with pure homebrew:

brew tap bazelbuild/tap
brew extract bazel bazelbuild/tap --version X.X.X

jvmncs avatar May 07 '20 21:05 jvmncs

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

marianabocoi avatar Jul 06 '21 15:07 marianabocoi

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. 🤔

marianabocoi avatar Jul 06 '21 16:07 marianabocoi

@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 😄

marianabocoi avatar Jul 06 '21 21:07 marianabocoi