Skip to content

Conversation

alexarchambault
Copy link
Member

@alexarchambault alexarchambault commented Oct 24, 2024

There are two main ways to get dependency lists out of a Resolution instance:

  • orderedDependencies (main one), which should be used to compute an ordered list of artifacts, and walks the dependency graph to compute its result
  • minDependencies, used internally by Resolution itself, that contains a more compact list (removing some redundancies)

This adds checks in the tests that the two are consistent with each other (no extra dependencies on one side or the other).

This is being helpful in #3097 to debug new developments in Resolution.

@alexarchambault alexarchambault marked this pull request as draft October 24, 2024 16:25
@alexarchambault
Copy link
Member Author

Hopefully, these checks will be green here

@alexarchambault alexarchambault marked this pull request as ready for review October 24, 2024 16:53
@alexarchambault alexarchambault merged commit c3e06ec into coursier:main Oct 24, 2024
23 checks passed
@alexarchambault alexarchambault deleted the resolution-consistency-check branch October 24, 2024 16:53
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.

1 participant