Skip to content

Solver: Prefer flag and stanza goals that have only one choice #3482

Open

Description

@sebright

I discussed this with @kosmikus. If a flag or stanza has only one choice, e.g, the user has enabled tests, the solver should assign a value as soon as possible, so that it can discover new dependencies more quickly. The behavior would be similar to --reorder-goals, but less general. It would also avoid the slowdown in tree traversal that is caused by --reorder-goals. Another possibility is to also prefer package goals where the user has specified an exact version.

This change would handle the issue with stanza preferences discussed here: #3453 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions