Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install fvm by brew #16

Closed
mbojec opened this issue Feb 11, 2024 · 8 comments
Closed

Can't install fvm by brew #16

mbojec opened this issue Feb 11, 2024 · 8 comments

Comments

@mbojec
Copy link

mbojec commented Feb 11, 2024

Hi, I wanted to install fem with brew and below I adding the error message (to low dart-lang version)

~ % brew install leoafarias/fvm/fvm
==> Fetching dependencies for leoafarias/fvm/fvm: dart-lang/dart/dart
==> Fetching dart-lang/dart/dart
==> Downloading https://storage.googleapis.com/dart-archive/channels/stable/rele
Already downloaded: /Users/marek/Library/Caches/Homebrew/downloads/bc5aa44d374fc4d2e130a4c01da40d02aa67be65fd995b089df8dfdbaad2288c--dartsdk-macos-arm64-release.zip
==> Fetching leoafarias/fvm/fvm
==> Downloading https://github.com/leoafarias/fvm/archive/3.0.0.tar.gz
Already downloaded: /Users/marek/Library/Caches/Homebrew/downloads/e959c575d757d1d5793de1f67d223a614b66dec3b0b9bd88f64660c27262c991--fvm-3.0.0.tar.gz
==> Installing fvm from leoafarias/fvm
==> Installing dependencies for leoafarias/fvm/fvm: dart-lang/dart/dart
==> Installing leoafarias/fvm/fvm dependency: dart-lang/dart/dart
🍺 /opt/homebrew/Cellar/dart/2.16.1: 869 files, 491.4MB, built in 5 seconds
==> Installing leoafarias/fvm/fvm
==> /opt/homebrew/opt/dart/libexec/bin/dart pub get
Last 15 lines from /Users/marek/Library/Logs/Homebrew/fvm/01.dart:
2024-02-11 16:05:50 +0000

/opt/homebrew/opt/dart/libexec/bin/dart
pub
get

Resolving dependencies...
The current Dart SDK version is 2.16.1.

Because fvm requires SDK version >=2.17.0 <4.0.0, version solving failed.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/leoafarias/homebrew-fvm/issues

These open issues may also help:
leoafarias/fvm/fvm 2.4.1 did not build #15
fvm relying on an older version of dart and failing via brew install #14

@leoafarias
Copy link
Owner

The issue, I believe, is because it is using the cached stable version you had last time.

Is there a way to force the install and/or clear the cache path for the SDK in your output?

@mbojec
Copy link
Author

mbojec commented Feb 11, 2024

I have deleted Dart before running brew install fvm and still receive this error. I have albo tried to install flutter directly so that I have Dart version 3.2 and it also didn't helped.

I also tried to install fvm 2.4.1 because I have this version on my other computer but I get info that there is no such version (yet on that other machine I have it)

@limajr
Copy link

limajr commented Feb 12, 2024

Possibly the solution is to change the dependency in "dart" to be "dart-sdk" in brew. That is at least a bit updated.

@leoafarias
Copy link
Owner

leoafarias commented Feb 12, 2024

@mbojec I have forced the sdk version of dart to compile the brew formula. Could you test this, to see if it resolves the issue? Just run the brew install again on fvm

@ranjithbobby89
Copy link

@mbojec I have forced the sdk version of dart to compile the brew formula. Could you test this, to see if it resolves the issue? Just run the brew install again on fvm

No still we have an issue

@ranjithbobby89
Copy link

ranjithbobby89 commented Feb 13, 2024

@leoafarias

> Install fvm install.
==> Tapping homebrew/cask
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-cask'...
Tapped 4377 casks (4,451 files, 366.2MB).
Warning: No available formula with the name "fvm". Did you mean fnm, nvm, dvm or bvm?
==> Searching for similarly named formulae...

getting error on install fvm

@mbojec
Copy link
Author

mbojec commented Feb 13, 2024

@leoafarias I can confirm that this time it worked :)

~ % brew install fvm
Running brew update --auto-update...
Installing from the API is now the default behaviour!
You can save space and time by running:
brew untap homebrew/core
==> Auto-updated Homebrew!
Updated 3 taps (leoafarias/fvm, homebrew/core and homebrew/cask).
==> New Formulae
dotslash ktfmt moon proto seam
==> New Casks
freeshow ollamac upscayl

You have 4 outdated formulae installed.

==> Fetching leoafarias/fvm/fvm
==> Downloading https://storage.googleapis.com/dart-archive/channels/stable/rele
######################################################################### 100.0%
==> Downloading https://github.com/leoafarias/fvm/archive/3.0.1.tar.gz
==> Downloading from https://codeload.github.com/leoafarias/fvm/tar.gz/refs/tags
######################################################################### 100.0%
==> Installing fvm from leoafarias/fvm
==> /opt/homebrew/Cellar/fvm/3.0.1/libexec/bin/dart pub get
==> /opt/homebrew/Cellar/fvm/3.0.1/libexec/bin/dart compile exe -Dversion=3.0.1
🍺 /opt/homebrew/Cellar/fvm/3.0.1: 1,022 files, 578.0MB, built in 23 seconds
==> Running brew cleanup fvm...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
Removing: /Users/marek/Library/Caches/Homebrew/fvm--3.0.0.tar.gz... (706KB)
~ % fvm --version

3.0.1

@leoafarias
Copy link
Owner

So glad to hear this!! Thank you for helping through it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants