craftctl: set variables from parts adopting metadata
Metadata
Current evaluation
Merged #190 in commit d463feef, restricting craftctl project-variable assignment to the adopting part; applications without project variables no longer need to specify one.
Resolution: closed resolved
Reason: PR #190 was approved and merged as commit d463feef. It implemented CRAFT-963 by scoping variable setting to the specified adopting part while allowing apps without project variables to omit one.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Restrict variable setting to the part specified when creating the
parts lifecycle. Applications that don't declare project variables
don't need to specify an adopting part.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
CRAFT-963
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #190 in commit d463feef, restricting craftctl project-variable assignment to the adopting part; applications without project variables no longer need to specify one. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in #190 via d463feef: craftctl now scopes project-variable assignment to the specified part; applications without project variables need no adopting part. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Restricts craftctl variable assignment to the specified part during lifecycle creation, removing the need for an adopting part when project variables are undeclared. Approved, passed CI, and integrated. Author notes future refactoring for validation and scope adjustments. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Restricts craftctl variable setting to the specified part during parts lifecycle creation, removing the adopting part requirement when project variables are undeclared. Author notes potential future refactoring for validation and scope adjustments. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-parts#509
(confidence 90%)
Later refined the same behavior so project variables are loaded only in the adopting part.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3677 parts: add craftctl support | snapcraft | merged | Merged #3677 added craftctl support, project-variable assignment, and adopt-info configuration in commit 293ac060b. | |
| #1220 feat: support nested project variables | craft-parts | merged | Merged in canonical/craft-parts#1220 via commit fc4a3315, adding ProjectVarInfo-based nested project variables and dot-notation craftctl set commands. |