← Back to issue list

Expose the build base name in snapcraft.yaml

View original Github issue

Metadata

Project
snapcraft
Number
#5614
Type
issue
State
open
Author
bschimke95
Labels
Status: Triaged Type: Enhancement
Created
2025-07-15 06:31:06+00:00
Updated
2025-07-21 13:45:39+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done I would like to access the build base name (e.g. `core22`) in other sections (e.g. environment and parts) of the `snapcraft.yaml` to avoid hardcoding and duplication. ### Why it needs to get done I have these two use-cases but I'm sure there are also others: 1. I need to reference the build base in an environment variable (`OPENSSL_MODULES: /snap/core22/current/usr/lib/x86_64-linux-gnu/ossl-modules-3/`) 2. I need to manually modify a path in a parts `override-build` based on the build base

Evaluation history

No evaluation history available.