Skip to content

fix: Sort package manifest dependencies for more deterministic lists#891

Merged
jbelkins merged 2 commits intomainfrom
jbe/sort_package_manifest_deps
Jan 7, 2025
Merged

fix: Sort package manifest dependencies for more deterministic lists#891
jbelkins merged 2 commits intomainfrom
jbe/sort_package_manifest_deps

Conversation

@jbelkins
Copy link
Contributor

@jbelkins jbelkins commented Jan 7, 2025

Description of changes

Package manifest dependencies are sorted by "target" instead of package name so that lists are more deterministic. (Package name on a SymbolDependency can, in some cases, be the Swift package that encloses a target; this means many targets in smithy-swift will have indeterminate sort order when sorted by package name.)

Also: a little code cleanup.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins jbelkins marked this pull request as ready for review January 7, 2025 02:54
@jbelkins jbelkins requested review from dayaffe and sichanyoo January 7, 2025 02:56
@jbelkins jbelkins merged commit fcf09b6 into main Jan 7, 2025
27 checks passed
@jbelkins jbelkins deleted the jbe/sort_package_manifest_deps branch January 7, 2025 20:25
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