Skip to content
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

Updating individual packages throws Could not synchronize packages error #382

Open
1 task done
buresdv opened this issue Aug 14, 2024 · 1 comment
Open
1 task done
Labels
Bug Something isn't working

Comments

@buresdv
Copy link
Owner

buresdv commented Aug 14, 2024

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
Snímek obrazovky 2024-08-14 v 16 29 00

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

  • This report is about the interface, and I included screenshots of the problem
@buresdv buresdv added the Bug Something isn't working label Aug 14, 2024
@buresdv buresdv moved this from Ideas to Bugs in Cork Project Board Aug 14, 2024
@buresdv
Copy link
Owner Author

buresdv commented Aug 14, 2024

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:

try await outdatedPackageTracker.getOutdatedPackages(brewData: brewData)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Bugs
Development

No branches or pull requests

1 participant