mas-cli / mas-cli/mas

`update` all instances of an app ID, not just one (or choose which instances to update)

Open
#462 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backlog bug investigation
Dominant language
Swift
Stars
12.4k
Forks
299
Avg merge
1d 2h
Merged PRs (30d)
1

Description

Your Environment

  • mas version: 1.8.6
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini): 12.3.1 (21E258)
mas Install Method

brew install mas (homebrew-core)

Describe the Bug

Apple Configurator 2 was installed via mas. outdated shows as it is not in the latest version, list shows two Apple Configurator and Apple Configurator 2 both with different versions but same ID, upgrade is not effective .

To Reproduce

$ mas version
1.8.6
$ mas list
1037126344  Apple Configurator 2  (2.15)
1037126344  Apple Configurator    (2.15.1)
$ mas outdated
1037126344 Apple Configurator 2 (2.15 -> 2.15.1)
$ mas upgrade 1037126344
Upgrading 1 outdated application:
Apple Configurator 2 (2.15)
==> Downloading Apple Configurator
==> Installed Apple Configurator
$ mas outdated
1037126344 Apple Configurator 2 (2.15 -> 2.15.1)

Expected Behavior

Only either Apple Configurator 2 or Apple Configurator is listed and can be upgraded correctly

Actual Behavior

Apple Configurator 2 and Apple Configurator are listed as installed, where only Apple Configurator 2 was supposed to... upgrade does not work at all, the package is downloaded installed but mas does not recognize it correctly and apparently it is confused.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported mas list, mas outdated, and mas upgrade 1037126344 commands and trace how upgrade selects an installed app when multiple entries share an ID. Done means the intended instance is selected or all matching instances are handled consistently, and mas outdated no longer reports the unchanged app after a successful upgrade.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.