Updating individual packages throws `Could not synchronize packages` error
What were you trying to do?
Trying to update individual packages
What was the problem?
Throws Could not synchronize packages error due to the output of the outdated package retrieval function being empty
Error logs
Outdated package function oputput: TerminalOutput(standardOutput: "", standardError: "")
There was an error decoding the outdated package retrieval output: The data couldn’t be read because it isn’t in the correct format.
Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected end of file" UserInfo={NSDebugDescription=Unexpected end of file})))
Could not synchronize packages: Cork.OutdatedPackageRetrievalError.couldNotDecodeCommandOutput("The data couldn’t be read because it isn’t in the correct format.")
App Version
1.4.4.2
App Acquisition
Self-Compiled
Final checklist
- [X] This report is about the interface, and I included screenshots of the problem
For some reason, the outdated package retrieval function works everywhere else, including when updating all packages. Only the one instance where individual package(s) arebeing updated does it fail.
Also tested with updating up to three packages (error thrown) and updating all packages (error not thrown)
Offending line: https://github.com/buresdv/Cork/blob/4e7e5623fae1c38241fbbc29b4252f6b6f90f644/Cork/Views/Updating/Incremental%20Updating/Update%20Some%20Packages%20View.swift#L93
Same issue here.
Cork 1.4.6.1 (85) macOS 15.1.1
Is this still happening in the latest version?
Resolved in d36570d2d777196e73f35e1bce7e83609cc9b5af