-
Notifications
You must be signed in to change notification settings - Fork 289
update fails on first attempt #1109
Copy link
Copy link
Description
Configuration
mas ▁▁▁▁ 4.1.0
arch ▁▁▁ arm64
from ▁▁▁ homebrew/core/mas
origin ▁ https://github.com/mas-cli/mas.git
rev ▁▁▁▁ 4fa8f4c1f5f2ae7e9a554451621d054bba0c7057
swift ▁▁ 6.2.1 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
driver ▁ 1.127.14.1
region ▁ CA
macos ▁▁ 26.1 (25B78)
mac ▁▁▁▁ Mac16,9
cpu ▁▁▁▁ Apple M4 Max
Bug description
❯ bin mas upgrade 899247664
Password:
==> Downloading TestFlight (4.1.0)
Error: Failed to copy receipt for TestFlight (4.1.0) from '/var/folders/j_/r4509w4d4b529twylmn6mz9m0000gn/T/TemporaryItems/NSIRD_mas_CEibEg/899247664-receipt' to '/Applications/TestFlight.app/Contents/_MASReceipt/receipt':
Error Domain=NSCocoaErrorDomain Code=516 "“899247664-receipt” couldn’t be copied to “_MASReceipt” because an item with the same name already exists." UserInfo={NSSourceFilePathErrorKey=/var/folders/j_/r4509w4d4b529twylmn6mz9m0000gn/T/TemporaryItems/NSIRD_mas_CEibEg/899247664-receipt, NSUserStringVariant=(
Copy
), NSDestinationFilePath=/Applications/TestFlight.app/Contents/_MASReceipt/receipt, NSFilePath=/var/folders/j_/r4509w4d4b529twylmn6mz9m0000gn/T/TemporaryItems/NSIRD_mas_CEibEg/899247664-receipt, NSURL=file:///var/folders/j_/r4509w4d4b529twylmn6mz9m0000gn/T/TemporaryItems/NSIRD_mas_CEibEg/899247664-receipt, NSUnderlyingError=0xbb0c207b0 {Error Domain=NSPOSIXErrorDomain Code=17 "File exists"}}
❯ bin mas upgrade 899247664
❯ bin mas outdated
1037126344 Apple Configurator (2.18 -> 2.19)
1560922539 Labelife (3.10.0 -> 3.11.0)
545519333 Prime Video (10.103 -> 10.109)
1276493162 reMarkable (3.23.0 -> 3.24.0)```
### Steps to reproduce
Have an outdated mas app.
Run `mas upgrade <id>` and enter password
See failure error message.
Run command again, see no output.
Run `mas outdated` and see the app was actually updated.Reactions are currently unavailable