fvm icon indicating copy to clipboard operation
fvm copied to clipboard

[BUG] Duplicate releases / no indication about different architectures on Apple Silicon

Open karniv00l opened this issue 2 years ago • 1 comments

Before creating a bug report please make check the following

  • [ ] You have read our FAQ
  • [ ] If you have used flutter. Please install correctly, run pub cache repair. Close the terminal and try again.
  • [ ] If you are on Windows. Make sure you are running the terminal as administrator or with developer permissions.
  • [ ] Run fvm doctor if possible and add the output to the issue.

Describe the bug

Since Flutter is being built for both x64 and arm64 platforms, we have more versions to choose from. See releases.json: https://raw.githubusercontent.com/fluttertools/fvm/main/releases_macos.json

To Reproduce Steps to reproduce the behavior:

  1. On Apple M1/M2 go to terminal
  2. Run fvm releases
  3. See duplicate releases:
May 11 22  │ 3.0.0
May 11 22  │ 3.0.0
May 20 22  │ 3.0.1
May 20 22  │ 3.0.1
May 26 22  │ 3.1.0
May 26 22  │ 3.1.0
Jun 10 22  │ 3.0.2
Jun 10 22  │ 3.0.2
Jun 15 22  │ 3.1.0-9.0.pre
--------------------------------------
Jun 15 22  │ 3.1.0-9.0.pre     beta
--------------------------------------
Jun 22 22  │ 3.0.3
Jun 22 22  │ 3.0.3
Jul 1 22   │ 3.0.4
--------------------------------------
Jul 1 22   │ 3.0.4             stable
--------------------------------------

Expected behavior

Some indication of architecture for each version would be nice :)

Desktop (please complete the following information):

  • OS: MacBook Pro 16, Apple M1 Max, macOS Monterey 12.4
  • FVM Version 2.3.1

Additional context

Linked issue: https://github.com/fluttertools/sidekick/issues/246

karniv00l avatar Jul 03 '22 11:07 karniv00l

@karniv00l This is not an issue when installing the version, only the display logic. Will make a fix.

leoafarias avatar Jul 06 '22 11:07 leoafarias

@karniv00l while implementing this, I hit a bit of a roadblock, Is there a particular reason why you would like to display the architecture? FVM will install the ARM architecture if it's available. The reason I ask its because it's creating a lot of repeated data.

Right now FVM is displaying only versions compatible with your architecture.

leoafarias avatar Oct 03 '22 14:10 leoafarias

Right now FVM is displaying only versions compatible with your architecture.

I think that's enough to close this issue, mine was just a suggestion, but it makes more sense to just hide the once that are not compatible ;)

karniv00l avatar Oct 04 '22 00:10 karniv00l