-
Notifications
You must be signed in to change notification settings - Fork 276
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
mas outdated not working #306
Comments
I have the same issue but not only with Xcode, but all pending updates. There is no output from Looks like |
I'm experiencing the same situation.
|
Doesn’t seem to work on Catalina I have never got it to work fully. |
same for me, updates are available in AppStore, but when I run mas outdated it doesn't show the available update... same for mas upgrade/install |
Outdated switch dead on Catalina. |
not working on Catalina after the recent security patch |
I may be seeing something similar on Mojave. I came here to see if I could figure out why the App Store app is telling me there is an update for BlackMagic Speed Disk (425264550) but mas (which I usually run to avoid the aggravation with the GUI I've had in the past) just told me everything was up to date. When I do a manual list of everything installed: When I tell mas to search the store: When I just run mas outdated, nothing is returned. And mas upgrade does nothing. Obviously there is a difference between the names but I wouldn't think that would cause mas to mismatch since the app ID are the same? UPDATE: Interestingly (?), I decided to try a forced reinstall: only to find once again the resulting name in the listing didn't match after the "update": I don't know where the "Blackmagic" reference keeps disappearing to. Maybe it's blackmagic ??? ..... ;-) |
Also not working on BigSur |
Apple has changed the way the AppStore works this may mean mas might not ever fully work with it. |
Not working for me on Catalina and Bigsur. |
If |
I just verified that I'd be willing to work on fixing this, but I haven't used Xcode, Mac APIs, Swift, or Objective-C before (I mainly code in Java & Kotlin). I forked the repo, cloned the fork, and opened the project in Xcode 12.3 (12C33) on macOS 11.1 on Intel. I received the following 8 errors & 1 warning when I build. If someone can help me fix the build problems, I'll continue working on a PR for this issue.
|
Looks like you are just missing some package, for example, https://github.com/Carthage/Commandant |
A git repo for Commandant already exists under So the files should be there, it's just that the build doesn't know where they are. Are there build setup instructions for I didn't see any in the readme or contributing docs. I'm used to the build system (Gradle, for my projects) automatically downloading listed dependencies and producing the correct classpath for the compiler. Do Apple ecosystem builds really require manual setup these days? |
Try the build script maybe. https://github.com/mas-cli/mas/blob/master/script/build |
Looks like you need Ruby with Bundler, Brew and Xcode it uses the standard make tool The, to me, it looks like you to do the following first:
Looks like you need to run Brew on brewfile to install dependences this includes mint a swift dependency manager ruby packages are also managed Bundler with a gem file Brewfile also installs make so looking at the Makefile it looks like the build commands are initiated through the make tool The bootstrap option seems to call all the dependency managers in turn to setup the environment in which to build. You may need to look into these files for clues. |
Is the Apple ecosystem so poor that Xcode cannot recognize standard build scripts & run without manual configuration? Or is this project just an oddity? If Xcode does recognize standard build scripts, but many projects don't use them, then that's still a failure of the Apple ecosystem. |
Xcode has every thing to build products for Apple devices it uses project files and a majority of app developers just use Xcode. It is very good at it. There are also many developers who prefer using other tools with the Xcode command line tools. Swift is also open sourced so some developers are using it server side with a host of different open source tools. One thing to consider is that MAS might be using non-public apis. |
I have a basic version of A few questions: Can I consider an app outdated if the version strings for the locally-installed version & the store version are different? Or must I implement a version ordering scheme to ensure that the store version is newer, not just different? If no store app is found for the identifier for a local app, should I output an error to stderr? Should I silently ignore? Should I do something else? Should I output red (or another color) text for errors, or just output plain text? Should errors be output as they occur, or should they be saved to all be output after non-error output? There might be some rough edges. I'm only building for x86_64 (instead of for both x86_64 & arm64) on my Intel Mac due to some error(s). I don't know if existing mas won't build for arm64, or if something is wrong with my Xcode setup. etc. The sooner I have answers to the above, the sooner I'll be able to submit a PR (which will probably have to be revised, due to my inexperience with all the associated tech). |
I think you need to mimic availableUpdates as much as you can. Not sure how it behaves since it's undocumented. Basically what outdated produces should be the same as what AppStore prompt you to update. I never encountered situations that app version is reverted in appstore. But it seems no harm to add. For removed app, a message would be good to have. |
Are versions guaranteed to only contain digits & dots? If not, ordering can get tricky. e.g., the maven version ordering algorithm is massively broken. I don't want to create an ordering that differs from what the store / publishers use; if I don't know their algorithm, then I can't replicate it. I personally would want mas to inform me about all version discrepancies between local & store, even if some would be considered downgrades instead of upgrades. |
I found the They seem to output to stdout. It seems suboptimal for But, it would make sense to use the same formatting for warnings & errors for this command. Should all warnings & errors from all commands be output to stderr? Should only the warnings from my updated I'll use a warning for an app not being found, and let all other error conditions be handled by the existing error handling setup. As an aside, there seems to be a typo in Also, if I'm able to fix |
I created a PR that fixes both It might be rough around the edges. I've only tested it by running in Xcode, not on the command line. I've only tested on native x86_64, not arm64 or Rosetta 2. Please review & provide feedback. I'll improve it as directed. |
Is there anything that I must do to get my PR merged? |
It seems the repo owner is just not around. Contact @phatblat directly maybe |
I hope they're OK. |
Should be fixed now in 1.8.1. @misc-activities can you confirm? |
@rgoldberg Hmmm. Seems like Another issue, if you run the same |
I tested by installing from the .pkg file. I had to run |
@lonelykid Confirmed that
The file doesn't exist, but one with the same name but with a |
@misc-activities I don't have any outdated apps, so I cannot currently confirm. Must you run it twice on every new terminal? Every login? Every reboot? Or just one extra time once, and all subsequent runs work across new terminals, logins, reboots, etc.? A random guess is that somehow mas needs to login to the app store, and the login is somehow async, so it doesn't finish in time during the first run. But I have no specific reason to think that; just a random stab in the dark… |
I've just updated to 1.8.1 and everything seems to work fine for me now.
Thanks for sorting this out @phatblat |
what BTW, |
@lonelykid
Are you running Big Sur? I'm wondering if there could be an OS version issue compounding things on your end. The situation with |
@Luminus I'm using Big Sur 11.2.3. What's your os version? |
@lonelykid Big Sur 11.2.2. I'm about to run the update to 11.2.3 now. |
@rgoldberg It's just one extra time once. |
@Luminus That's strange. I don't think it's bug introduced by new macos version. but good luck. @rgoldberg Could you try |
I'll try everything people need me to try later today. I think we should probably open 3 (or more) new issues (ScanScan version, file open error & one extra run required before working), then have the discussions in the relevant issue, instead of continuing here, since they seem to be existing issues with common code that was originally used by |
I'm not sure if this is relevant to MAS or an App Store issue, but I have an up to date app showing for the mas outdated command with a version number formatting difference.
I have tried updating through mas but it is still showing up as outdated.
The installed app shows as version 17.1.0 in the 'get info' window. |
I have a similar issue to one posted by @Luminus
Even though I'm running the updated version, |
This seems a different issue. Yours shows incorrect installed version, but others' show incorrect new version. Did you upgrade the app outside AppStore? If so, try reinstalling it. |
Ah, I haven't realised that. I upgraded the app through |
I believe there is a way to tell if an application came from the App Store or not via the apps code signature |
Ah, maybe I also misunderstood the question asked earlier, so just to clarify this as well - that app I installed and always updated though AppStore before. Just last time I upgraded it I used / tested |
Also having similar issue after running
|
Actually, I think my fix to stop caching search results might have resolved this issue around
Obviously, the mismatch between Messenger's bundle version and App Store version is still a problem (and is tracked in #331). However, the Remote Desktop update is correctly reported by the version of EDIT:
I agree we may need to change As seen in #331, vendors are also free to publish a version in the App Store that doesn't actually match what's in their .app bundle. I'm not sure what to recommend here. Maybe we keep the cache enabled by default (to avoid oscillating on frequent |
The remaining discrepancies from |
I just installed mas on my macOS Catalina installation. I have signed into the app store from the Mac App Store. When I run
mas list
, I can see all the installed apps. There is an update available for Xcode which I want to try installing using mas. However, when I runmas outdated
, it doesn't show the available update. I ranmas reset
and then ranmas outdated
again but that didn't work as well.The text was updated successfully, but these errors were encountered: