Skip to content

clarfiy reveresedVersions/versions in pubgrub #3109

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
Dec 11, 2020

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Dec 11, 2020

motivation: easier to reason about code

changes:

  • rename PacakgeContainer::reversedVersions to PackageContainer::versionsDescending
  • add PacakgeContainer::versionsAscending to avoid the versionsDescending().reveresed() code
  • rename PacakgeContainer::versions(filter) to PackageContainer::toolsVersionsAppropriateVersionsDescending to better reflect the true meaning
  • remove filter from PackageContainer::toolsVersionsAppropriateVersionsDescending since its not used in practice
  • adjust tests and mocks

motivation: easier to reason about code

changes:
* rename PacakgeContainer::reversedVersions to PackageContainer::versionsDescending
* add PacakgeContainer::versionsAscending to avoid the versionsDescending().reveresed() code
* rename PacakgeContainer::versions(filter) to PackageContainer::toolsVersionsAppropriateVersionsDescending to better reflect the true meaning
* remove filter from PackageContainer::toolsVersionsAppropriateVersionsDescending since its not used in practice
* adjust tests and mocks
@tomerd tomerd force-pushed the fix/reversed-versions branch from da1c5f1 to 6cfc566 Compare December 11, 2020 18:56
@tomerd
Copy link
Contributor Author

tomerd commented Dec 11, 2020

@swift-ci please smoke test

@tomerd tomerd merged commit 9f4e214 into swiftlang:main Dec 11, 2020
federicobucchi pushed a commit to federicobucchi/swift-package-manager that referenced this pull request Jan 6, 2021
motivation: easier to reason about code

changes:
* rename PacakgeContainer::reversedVersions to PackageContainer::versionsDescending
* add PacakgeContainer::versionsAscending to avoid the versionsDescending().reveresed() code
* rename PacakgeContainer::versions(filter) to PackageContainer::toolsVersionsAppropriateVersionsDescending to better reflect the true meaning
* remove filter from PackageContainer::toolsVersionsAppropriateVersionsDescending since its not used in practice
* adjust tests and mocks
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.

3 participants