Skip to content

Destinations: throw error on duplicate artifact ID #6343

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

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

MaxDesiatov
Copy link
Contributor

swift experimental-destination install command doesn't check if a newly installed bundle contains same IDs as already installed bundles.

Moved installation code from InstallDestination.swift to separate static functions on DestinationBundle to make it testable. Also added tests that exercise these code paths and verify that installation is successful or throws correct errors when needed.

rdar://106090132

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

`swift experimental-destination install` command doesn't check if a newly installed bundle contains same IDs as already installed bundles.

Moved installation code from `InstallDestination.swift` to separate static functions on `DestinationBundle` to make it testable. Also added tests that exercise these code paths and verify that installation is successful or throws correct errors when needed.

rdar://106090132
@MaxDesiatov MaxDesiatov force-pushed the maxd/duplicate-bundles branch from 7641e01 to 673999b Compare March 28, 2023 13:25
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit ddcaeee into main Mar 28, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/duplicate-bundles branch March 28, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants