Skip to content

[5.5] fix package.resolved interplay with mirrors #3452

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 1 commit into from
Apr 28, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Apr 27, 2021

bring #3447 to 5.5

motivation: mirror urls leak today to package.resolved

changes:
* add storage for "original urls" in the pins store
* pass the mirors to the pins file handler
* transform the url when encoding and decoding the pins store such that the package.resolved file contains the non-mirrored URL but SwiftPM internals work witht mirrored ones
* adjust call-sites
* add and adjust tests

rdar://52529014
rdar://52529011
@tomerd
Copy link
Contributor Author

tomerd commented Apr 27, 2021

@swift-ci please test

@tomerd tomerd self-assigned this Apr 27, 2021
@tomerd tomerd merged commit c684554 into swiftlang:release/5.5 Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants