Skip to content

solver: allow preferences with provider details#51263

Merged
haampie merged 3 commits intospack:developfrom
alalazo:bugfix/solver-virtual-prefer
Sep 3, 2025
Merged

solver: allow preferences with provider details#51263
haampie merged 3 commits intospack:developfrom
alalazo:bugfix/solver-virtual-prefer

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Sep 2, 2025

fixes #51262

The main issue is a typo, where we use spec.name instead of spec to construct a condition for the solver.

Fixing that issue uncovered a new bug (a unit test was failing) related to adding flags to providers through a requirements on the virtual. That is also fixed here.

fixes spack#51262

The main issue is a type, where we use `spec.name` instead of
spec to construct a condition for the solver.

Fixing that issue uncovered a new bug (a unit test was failing)
related to adding flags to providers through a requirements
on the virtual.

That is also fixed here.

Signed-off-by: Massimiliano Culpo <[email protected]>
@alalazo alalazo added bugfix Something wasn't working, here's a fix v1.0.2 PRs / Bug fixes to backport for v1.0.2 labels Sep 2, 2025
Signed-off-by: Massimiliano Culpo <[email protected]>
@haampie haampie merged commit 5827c80 into spack:develop Sep 3, 2025
33 checks passed
@alalazo alalazo deleted the bugfix/solver-virtual-prefer branch September 3, 2025 05:56
@alalazo alalazo mentioned this pull request Sep 3, 2025
26 tasks
alalazo added a commit that referenced this pull request Sep 8, 2025
The main issue is a typo, where we use `spec.name` instead of
spec to construct a condition for the solver.

Also fixes a bug related to adding flags to providers through a
requirement on the virtual.

Signed-off-by: Massimiliano Culpo <[email protected]>
haampie pushed a commit that referenced this pull request Sep 12, 2025
The main issue is a typo, where we use `spec.name` instead of
spec to construct a condition for the solver.

Also fixes a bug related to adding flags to providers through a
requirement on the virtual.

Signed-off-by: Massimiliano Culpo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something wasn't working, here's a fix v1.0.2 PRs / Bug fixes to backport for v1.0.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

solver: virtual preference with provider details not honored

2 participants