canonical / canonical/craft-application
Include appropriate craft-parts environment variables when packing with `--shell`, `--debug`, etc.
Open
- Dominant language
- Python
- Stars
- 14
- Forks
- 29
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 12
Description
### What needs to get done
Include the relevant environment variables set by craft-parts when using `--debug` or `--shell` on a lifecycle command.
### Why it needs to get done
testing out override scripts with variables like `$CRAFT_STAGE` already set would make debugging much faster.
Contributor guide
Research direction
Start by locating the lifecycle command handling --debug and --shell, then trace how craft-parts environment variables are currently prepared. The work is done when those commands expose relevant variables such as $CRAFT_STAGE while running override scripts, without changing other lifecycle behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100