environment variable setting issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm using the new environment variable settings (bug1583259) from snapcraft 2.27 and noticed a couple of surprising things.
My snapcraft.yaml contained the following:
environment:
APPORT_
Then running apport-cli produced the following Traceback:
brian-murray@
Traceback (most recent call last):
File "/snap/
app = CLIUserInterface()
File "/snap/
apport.
File "/snap/
self.crashdb = apport.
File "/snap/
with open(conf) as f:
FileNotFoundError: [Errno 2] No such file or directory: '$SNAP/
Two things about this were surprising to me.
1) The addition of "\n" to the environment variable. On a classic Ubuntu system using 'APPORT_
2) The fact that "$SNAP" wasn't expanded in the environment. Again on a classic Ubuntu system if I use the following 'PLACE=
"FileNotFoundError: [Errno 2] No such file or directory: '/home/
Changed in snappy: | |
status: | Confirmed → Fix Released |
The \n is fixed in master and will be released as 2.23 shortly.
The $SNAP expansion is likely fixed as well. I'll mark this as fix committed.