Skip to content

improve error message when Package.resolved cannot be loaded #3721

Merged
tomerd merged 2 commits into
swiftlang:mainfrom
tomerd:fix/serialization-error-message
Sep 8, 2021
Merged

improve error message when Package.resolved cannot be loaded #3721
tomerd merged 2 commits into
swiftlang:mainfrom
tomerd:fix/serialization-error-message

Conversation

@tomerd

@tomerd tomerd commented Sep 7, 2021

Copy link
Copy Markdown
Contributor

motivation: provide clear and actionable information when trying to load pacakge.resolved file from a non-supported version, or otherwise malformed.

changes:

  • add contextual information to error message
  • add few tests

@tomerd

tomerd commented Sep 7, 2021

Copy link
Copy Markdown
Contributor Author

needs #3717 first

@tomerd tomerd force-pushed the fix/serialization-error-message branch 2 times, most recently from 05753f8 to 385eeb8 Compare September 7, 2021 00:35
@tomerd

tomerd commented Sep 7, 2021

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@tomerd tomerd added the ready Author believes the PR is ready to be merged & any feedback has been addressed label Sep 7, 2021
@tomerd tomerd force-pushed the fix/serialization-error-message branch from 385eeb8 to 1752166 Compare September 7, 2021 23:54
@tomerd

tomerd commented Sep 7, 2021

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

Comment thread Sources/Basics/FileSystem+Extensions.swift Outdated
@tomerd tomerd force-pushed the fix/serialization-error-message branch from 1752166 to 7e28c6b Compare September 8, 2021 00:21
motivation: provide clear and actionable information when trying to load pacakge.resolved file from a non-supported version, or otherwise malformed.

changes:
* add contextual information to error message
* add few tests
@tomerd tomerd force-pushed the fix/serialization-error-message branch from 7e28c6b to 1585f67 Compare September 8, 2021 00:23
@tomerd

tomerd commented Sep 8, 2021

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@tomerd tomerd force-pushed the fix/serialization-error-message branch from 1585f67 to 8b2a406 Compare September 8, 2021 00:26
@tomerd

tomerd commented Sep 8, 2021

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@tomerd tomerd force-pushed the fix/serialization-error-message branch from 8b2a406 to ed46762 Compare September 8, 2021 03:58
@tomerd

tomerd commented Sep 8, 2021

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@tomerd tomerd merged commit 4f45968 into swiftlang:main Sep 8, 2021
mattt pushed a commit to mattt/swift-package-manager that referenced this pull request Sep 16, 2021
…ng#3721)

* improve error message when Package.resolved cannot be loaded

motivation: provide clear and actionable information when trying to load pacakge.resolved file from a non-supported version, or otherwise malformed.

changes:
* add contextual information to error message
* add few tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Author believes the PR is ready to be merged & any feedback has been addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants