Skip to content

Fix required var not propagated to solver#1359

Open
jrray wants to merge 1 commit intomainfrom
required-var-in-build-req
Open

Fix required var not propagated to solver#1359
jrray wants to merge 1 commit intomainfrom
required-var-in-build-req

Conversation

@jrray
Copy link
Copy Markdown
Collaborator

@jrray jrray commented Apr 24, 2026

When a recipe declares a namespaced var option like mylib.namespace_style/major_minor, the value was added as a standalone VarRequest but not attached to the corresponding PkgRequestWithOptions. The solver needs the var in the package request's options map (as Complete) to satisfy a required var constraint.

Collect namespaced var options in get_build_requirements() and attach them to their corresponding package requests. Also fix the checks solver's impossible request pre-check to translate request options into build options on the dummy recipe so the combining logic preserves them as Complete.

When a recipe declares a namespaced var option like
`mylib.namespace_style/major_minor`, the value was added as a
standalone VarRequest but not attached to the corresponding
PkgRequestWithOptions. The solver needs the var in the package
request's options map (as Complete) to satisfy a required var
constraint.

Collect namespaced var options in get_build_requirements() and
attach them to their corresponding package requests. Also fix
the checks solver's impossible request pre-check to translate
request options into build options on the dummy recipe so the
combining logic preserves them as Complete.

Signed-off-by: J Robert Ray <jrray@imageworks.com>
@jrray jrray self-assigned this Apr 24, 2026
@jrray jrray added bug Something isn't working AI Code authored with AI assistance. labels Apr 24, 2026
@jrray jrray requested a review from dcookspi April 24, 2026 21:14
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

Labels

AI Code authored with AI assistance. bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants