← Back to issue list

Export variables to testing environment

View original Github issue

Metadata

Project
snapcraft
Number
#5396
Type
issue
State
open
Author
cmatsuoka
Labels
Status: Triaged Type: Enhancement
Created
2025-04-13 21:47:26+00:00
Updated
2025-04-21 19:08:55+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Share variables such as `SNAPCRAFT_PROJECT_DIR`, `SNAPCRAFT_PROJECT_VERSION` and `CRAFT_ARCH_BUILD_FOR` with the testing environment. ### Why it needs to get done This allows test projects to correctly identify the snap generated in this lifecycle run by referencing them as `$SNAPCRAFT_PROJECT_DIR/mysnap_$SNAPCRAFT_PROJECT_VERSION_$CRAFT_ARCH_BUILD_FOR.snap`. Other variables containing component versions can be exported later.

Evaluation history

No evaluation history available.