snapcraft should support using HOST for environment like spread does
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
With spread ( https:/
```
environment:
SPREAD_VAR: '$(HOST: echo "${SPREAD_
```
where if I don't define the SPREAD_VAR variable when calling spread, it will have a default value, but spread also supports more generic things because the HOST: syntax is just a shell script snippet, so it could do other things to get the value of a variable and output it.
Snapcraft should support something like this to be able to define variables inside snapcraft.yaml which can get their values from the host. Some use cases this would solve for snapcraft:
* easy injection of secret keys into a build
* easy inclusion of debug symbols/assets when a developer wants to include this
* changing what versions of parts to use when building the snap
Changed in snapcraft: | |
status: | New → Triaged |
We need to think about this one further. It does look like a good idea though