mas icon indicating copy to clipboard operation
mas copied to clipboard

🐛 [BUG] `mas` upgrades to the version that's already installed

Open c10l opened this issue 1 year ago • 6 comments

Your Environment

  • mas version: 1.8.6
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini): 10.1...
❯ system_profiler SPSoftwareDataType -detailLevel mini
Software:

    System Software Overview:

      System Version: macOS 13.5.2 (22G91)
      Kernel Version: Darwin 22.6.0
      Time since boot: 5 days, 9 hours, 55 minutes

mas Install Method

  • [X] brew install mas (homebrew-core)
  • [] mas-cli/tap
  • [] .pkg installer from releases
  • [] Built from source
    • Fork/branch: ? (e.g. mas-cli/main)
    • Xcode version: 10.?

Describe the Bug

Steam Link is installed on version 1.2.0. mas sees updated version 1.3.4 available. mas "upgrades" it to the old, already installed 1.2.0 version.

❯ mas outdated
1246969117 Steam Link (1.2.0 -> 1.3.4)
❯ mas upgrade
Upgrading 1 outdated application:
Steam Link (1.2.0)

If I uninstall and reinstall, I get 1.3.4 but running upgrade actually downgrades it to 1.2.0.

❯ mas install 1246969117
==> Downloading Steam Link
==> Installed Steam Link
❯ mas info 1246969117
Steam Link 1.3.4 [0.0]
By: Valve Corporation
Released: 2023-09-12
Minimum OS: 11.0
Size: 55.8 MB
From: https://apps.apple.com/gb/app/steam-link/id1246969117?uo=4
❯ mas upgrade
Upgrading 1 outdated application:
Steam Link (1.2.0)
==> Installed Steam Link

To Reproduce

Steps to reproduce the behavior:

  1. Install Steam Link: mas install 1246969117
  2. Run mas upgrade
  3. Observe the downgrade <- second bug above
  4. Run mas upgrade again
  5. Observe it reinstalling the old, already installed 1.2.0 version <- first bug above

Expected Behavior

mas upgrade installs Steam Link 1.3.4, and subsequent upgrades do nothing as it's already latest.

c10l avatar Sep 13 '23 08:09 c10l

Hi there, I've come across the same bug with Homebrew MAS. This problem has been going on for years.

I am currently having this problem with two different apps installed. The Wavelength and the Pins app.

It appears to be installing the iOS version instead of the Mac version of certain apps.

Could anyone please assist in resolving this issue? Thanks!

dogangok avatar Oct 04 '23 12:10 dogangok

Looks like this is a duplicate of #491 and there's a potential fix at #496.

Tekl avatar Nov 07 '23 10:11 Tekl

The same is happening to me for endel mac app. Simulation steps below.

$ mas list
1346247457  Endel  (4.31.12)

$ mas outdated
1346247457 Endel (4.31.12 -> 4.38.2)

$ mas upgrade
Upgrading 1 outdated application:
Endel (4.31.12)
==> Installed Endel: Focus, Sleep, Relax

$ mas outdated
1346247457 Endel (4.31.12 -> 4.38.2)

kishaningithub avatar Jan 04 '24 05:01 kishaningithub

I see the same with Omnivore (1.38.0)

mas outdated 1564031042 Omnivore (1.38.0 -> 1.41)

jun6lee avatar Jan 06 '24 19:01 jun6lee

I am getting this same issue for Pomodoro timer app Flow:

x mas list | rg Flow
1423210932  Flow                           (2.14.1)

$ mas outdated
1423210932 Flow (2.14.1 -> 3.3.1)

After reading through https://github.com/mas-cli/mas/pull/496 mentioned above I've confirmed that version 3.3.1 here is indeed the latest iOS version, the version I have 2.14.1 is the latest macOS version.

rosstimson avatar Jan 10 '24 21:01 rosstimson

same issue, but for me it only occurs for Highlights. Pasted image 2024-01-16 at 23 22 59@2x

chrisgrieser avatar Jan 16 '24 22:01 chrisgrieser