Environment keyword not parsed correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
High
|
Unassigned |
Bug Description
Found this after testing Kyle's answer here: http://
When using variable interpolation in the `environment` keyword in a snapcraft.yaml like so:
```
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_
TEST_A: $LD_LIBRARY_
TEST_B: $SNAP_USER_
```
The resulting environment variables (obtained by executing `snap run --shell myapp; env`) have some interesting duplication going on:
```
LD_LIBRARY_
TEST_A=
TEST_B=
```
The same happens when building the `git` demo (https:/
```
PATH=/usr/
GIT_TEMPLATE_
```
This only happens when interpolating variables (ie using $PATH, $SNAP etc). Everything is fine when using absolute paths.
description: | updated |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
Thanks for your bugreport.
This got fixed in master https:/ /github. com/snapcore/ snapd/commit/ 3de712bf and will be part of the upcoming stable release 2.24.