canonical / canonical/craft-application

Include appropriate craft-parts environment variables when packing with `--shell`, `--debug`, etc.

Open
#435 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.