← Back to issue list

Docs: Document/cross-reference working directory and environment variables of override-* steps

View original Github issue

Metadata

Project
craft-parts
Number
#659
Type
issue
State
open
Author
thp-canonical
Labels
Created
2024-02-09 13:38:55+00:00
Updated
2025-03-11 14:28:38+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Document (or cross-reference) the current working directory and available environment variables for `override-build`, `override-prime`, `override-pull` and `override-stage`, so that they are easy to find from the "Part properties" documentation: https://canonical-craft-parts.readthedocs-hosted.com/en/latest/reference/part_properties.html#override-build Probably requires cross-referencing https://canonical-craft-parts.readthedocs-hosted.com/en/latest/reference/parts_steps.html#step-execution-environment from the above page (and the other `override-*` steps). ### Why it needs to get done It's not clear by just looking at [the documentation](https://canonical-craft-parts.readthedocs-hosted.com/en/latest/reference/part_properties.html#override-build) in which directory the `override-build`, `override-prime`, `override-pull` and `override-stage` steps run, and in e.g. `override-prime` where "stage" and where "prime" is relative to the current directory (I assume it'll be `$CRAFT_STAGE` and `$CRAFT_PRIME`, but is the working directory one of them already?).

Evaluation history

No evaluation history available.