Include appropriate craft-parts environment variables when packing with `--shell`, `--debug`, etc.
Metadata
Current evaluation
Feature request to expose craft-parts environment variables (e.g. $CRAFT_STAGE) in the shell launched by --shell/--debug on lifecycle commands like pack, to speed up override-script debugging. Open, unlabelled, zero comments, no activity since ~465 days ago.
Suggested action: needs triage
Reason: The issue is unlabelled, has zero comments, and no maintainer acknowledgement, so it has not been triaged. The feature is still relevant: _launch_shell() in craft_application/commands/lifecycle.py still just runs subprocess.run(["bash"]) without injecting craft-parts variables, and no commit or PR has implemented this. It is a genuine feature request (not support), but a moderate-scope improvement rather than a critical bug.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
30
Quick Win:
18.0
Staleness:
70
Complexity:
40
Confidence:
75
Support Request:
10
|
needs triage | Feature request to expose craft-parts environment variables (e.g. $CRAFT_STAGE) in the shell launched by --shell/--debug on lifecycle commands like pack, to speed up override-script debugging. Open, unlabelled, zero comments, no activity since ~465 days ago. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
25
Confidence:
80
Support Request:
10
|
needs triage | Feature request to expose craft-parts environment variables in debug and shell modes for lifecycle commands. Unlabelled, zero comments, and inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
80
Support Request:
10
|
needs triage | Feature request to expose craft-parts environment variables during --shell or --debug sessions to speed up debugging override scripts. Currently unlabelled and unassessed by maintainers. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
40
Confidence:
65
Support Request:
10
|
needs triage | Pass craft-parts environment variables like CRAFT_STAGE to --shell and --debug sessions to speed up debugging override scripts. Open with zero comments and no recent activity, awaiting triage and assignment. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #428 add the typical environment variables to any interactive session, like with `--debug` | rockcraft | open | Feature request to include build-stage env vars (CRAFT_PART_BUILD, CRAFT_PRIME, etc.) in the interactive shell dropped on `--debug` build failure. No labels, no maintainer comments, no assignee; untriaged for ~2.7 years. |