brick-hub / brickhub.dev

The BrickHub Registry Site
https://brickhub.dev
MIT License
52 stars 2 forks source link

docs: Install lower CLI version using Homebrew #71

Open pdax-johnlester opened 1 year ago

pdax-johnlester commented 1 year ago

Description

Is there any way to install lower version of mason_cli using homebrew? I accidentally upgraded it to 0.1.0-dev.45 and my Flutter SDK (3.3.4) and Dart SDK (2.18.2) is not yet supported. Is there any option to revert it back?

Thank you so much.

Requirements

felangel commented 1 year ago

Hi @pdax-johnlester ๐Ÿ‘‹ Thanks for opening an issue!

You should be able to install a specific version either via brew or pub:

# Install specific version via brew extract
TAP=felangel/mason
MODULE=mason
VERS=0.1.0-dev.42
brew tap-new $TAP
brew extract --version $VERS $MODULE $TAP
brew install $TAP/$MODULE@$VERS

# Install a specific version via dart pub global activate <version>
dart pub global activate mason_cli 0.1.0-dev.40

Let me know if that helps ๐Ÿ‘

pdax-johnlester commented 1 year ago

Hi @felangel, thanks for the response.

I try to install it via pub and it actually works.

Can you include these options on the documentation?

felangel commented 1 year ago

Hi @felangel, thanks for the response.

I try to install it via pub and it actually works.

Can you include these options on the documentation?

Glad to hear you got it working! They should already be covered in https://docs.brickhub.dev/installing. Do you feel thereโ€™s something missing?

pdax-johnlester commented 1 year ago

I think we should add a section here how to switch versions via pub and homebrew.

In order for other developers to know how to do it. ๐Ÿ˜