asdf-community / asdf-flutter

flutter plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
110 stars 31 forks source link

MacOS downloads are zips, not tars #33

Open bmatcuk opened 2 years ago

bmatcuk commented 2 years ago

I dunno if things changed with flutter v3, but the MacOS downloads are zip files not tars: https://storage.googleapis.com/flutter_infra_release/releases/releases_macos.json

When I run asdf install flutter 3.0.1-stable, for example, I get:

$ asdf install flutter 3.0.1-stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1204M  100 1204M    0     0  34.1M      0  0:00:35  0:00:35 --:--:-- 33.1M
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
ProteanDev commented 2 years ago

I'm getting this issue too curl: (3) URL using bad/illegal format or missing URL tar: Error opening archive: Failed to open 'flutter_macos_3.0.5-stable.zip'

ProteanDev commented 2 years ago

Okay I got the solution that works for me, if you're on macOS and using homebrew ( because why would you not ), just do asdf plugin-update flutter - updates the plugin brew install jq - jq helps with the zip file I believe then finally asdf install flutter [Version you want or just use 'latest']

bmatcuk commented 2 years ago

This did not solve it for me... I already have jq installed and the latest version of the flutter asdf plugin.