Create envvars for namespaced partitions
Metadata
Current evaluation
Implemented namespaced-partition STAGE and PRIME environment variables in merged PR #602, commit a8615eec.
Resolution: closed resolved
Reason: PR #602 was merged as commit a8615eec, adding normalized environment variables for namespaced partitions, including CRAFT_DEFAULT_STAGE and CRAFT_COMPONENT_FOO_STAGE and corresponding PRIME variables.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
Environment variables will contain the namespace and partition name, formatted as $CRAFT_<namespace>_<partition>_{STAGE|PRIME}.
For example,
```python
lcm = craft_parts.LifecycleManager(
partitions = ["default", "component/foo", "component/bar-baz"],
...
)
```
would result in the following environment variables:
```
$CRAFT_STAGE
$CRAFT_DEFAULT_STAGE
$CRAFT_COMPONENT_FOO_STAGE
$CRAFT_COMPONENT_BAR_BAZ_STAGE
$CRAFT_PRIME
$CRAFT_DEFAULT_PRIME
$CRAFT_COMPONENT_FOO_PRIME
$CRAFT_COMPONENT_BAR_BAZ_PRIME
```
### Why it needs to get done
To support components in snapcraft
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Implemented namespaced-partition STAGE and PRIME environment variables in merged PR #602, commit a8615eec. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented namespaced-partition environment variables in merged PR #602 (commit a8615eec), including CRAFT_DEFAULT_STAGE, CRAFT_COMPONENT_FOO_STAGE and corresponding PRIME variables. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The request to create environment variables for namespaced partitions was abandoned or superseded, with no pull requests or code changes submitted. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation or linked pull request. The feature to generate environment variables for namespaced partitions remains unimplemented and appears abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The request to create environment variables for namespaced partitions was closed without implementation or discussion, likely superseded by later snapcraft component support work. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation. The feature request to create environment variables for namespaced partitions, such as CRAFT_namespace_partition_STAGE, was abandoned. No pull requests or resolutions were submitted. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-parts#602
(confidence 100%)
The merged feature commit directly implements namespaced-partition STAGE and PRIME environment variables.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #602 feat(partitions): create envvars for namespaced partitions | craft-parts | merged | Merged PR #602 (commit a8615eec) adds CRAFT_<PARTITION>_STAGE/PRIME env vars for namespaced partitions, drops #600's xfails, and fixes #597. |