Skip to content

Conversation

@neonichu
Copy link
Contributor

It seems like equality for triples should depend on the parsed version and exclude the initial string representation.

Eventually, we should probably get rid of storing the original string and compute that from the parsed version, but I am just trying to address equality for now.

@neonichu
Copy link
Contributor Author

@swift-ci please test

neonichu added a commit to swiftlang/swift-package-manager that referenced this pull request Mar 29, 2022
In swiftlang/swift-tools-support-core#300, I made `Triple` more lenient w.r.t. different spellings of macOS. Since we are using string matching for finding matching binary artifacts, that would break with differently spelled triples. This PR in conjunction with swiftlang/swift-tools-support-core#307 ensures that we are finding artifacts based on the parsed representation of triples, not their string representations.
@abertelrud
Copy link
Contributor

This makes sense to me, and I suspect it was just an oversight to include the original string through synthesis.

It seems like equality for triples should depend on the parsed version and exclude the initial string representation.

Eventually, we should probably get rid of storing the original string and compute that from the parsed version, but I am just trying to address equality for now.
@neonichu
Copy link
Contributor Author

@swift-ci please test

@neonichu neonichu merged commit 8e48015 into swiftlang:main Mar 30, 2022
@neonichu neonichu deleted the triple-equatable branch March 30, 2022 21:21
neonichu added a commit to swiftlang/swift-package-manager that referenced this pull request Apr 1, 2022
In swiftlang/swift-tools-support-core#300, I made `Triple` more lenient w.r.t. different spellings of macOS. Since we are using string matching for finding matching binary artifacts, that would break with differently spelled triples. This PR in conjunction with swiftlang/swift-tools-support-core#307 ensures that we are finding artifacts based on the parsed representation of triples, not their string representations.
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