mas-cli / mas

:package: Mac App Store command line interface
MIT License
10.89k stars 274 forks source link

`upgrade` sometimes doesn't see upgrades until after `outdated` has been run #485

Open StefanLobbenmeier opened 1 year ago

StefanLobbenmeier commented 1 year ago

Your Environment

mas Install Method

Describe the Bug

When I run mas ugprade, it says that there is nothing to upgrade. I first have to run mas outdated and then run upgrade again so it is able to find the upgrades. It would make more sense if mas upgrade would also check for updates itself, e.g. like brew does

To Reproduce

  1. wait for an update to appear in the app store
  2. run mas upgrade

Expected Behavior

mas upgrade also checks for updates

Actual Behavior

mas upgrade is unaware of updates

Screenshots, Terminal Output

If applicable, add screenshots to help explain your problem.

~/❯ mas upgrade                                                                                                                                                                                                                                                                  
Warning: Nothing found to upgrade
~/❯ mas outdated                                                                                                                                                                                                                                                                 
497799835 Xcode (14.1 -> 14.2)
~/❯ mas upgrade                                                                                                                                                                                                                                                                  
Upgrading 1 outdated application:
Xcode (14.1)
==> Downloading Xcode
------------------------------------------------------------ 0.0% Waiting

Additional Context

Add any other context about the problem here. Did it work in a previous version?

dalisoft commented 1 year ago

@StefanLobbenmeier Maybe it's related to https://github.com/mas-cli/mas/issues/458?

StefanLobbenmeier commented 1 year ago

Yeah sounds similar, I added a question there to verify

rgoldberg commented 1 week ago

This might be resolved when #560 is implemented. I haven't yet observed any differences from my test implementation of #560, but I have a few other test ideas to determine if there are any other differences. I will be working on other, more concrete issues before I can get back to this, so it might be a bit before I know if #560, or if anything similar, will work.