← Back to issue list

add the typical environment variables to any interactive session, like with `--debug`

View original Github issue

Metadata

Project
rockcraft
Number
#428
Type
issue
State
open
Author
ca-scribner
Labels
Created
2023-11-30 18:19:24+00:00
Updated
2025-08-15 15:12:53+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Whenever the user is dropped into an interactive session (for example, when a build error occurs during `rockcraft pack --debug`), include all environment variables that would normally exist at that stage in the build. For example, if debugging happens because part `xyz` failed, you should have `CRAFT_PART_BUILD=/root/parts/xyz/build`, `CRAFT_PRIME=/root/prime`, etc ### Why it needs to get done For a user that is debugging, they want to debug exactly where the script left off. Without these environment variables, they need to set them manually to debug their own scripts. This is both tedious and leads to errors

Evaluation history

No evaluation history available.