snapcraft 2.27 has been released
jcoates at extremenetworks.com
Tue Mar 7 22:06:58 UTC 2017
This thread got sidetracked to a different discussion, but I am seeing issues related to the original question.
I have a simple test app which looks like this in snapcraft .yaml:
plugs: [ network, network-bind ]
The command simply echos the values of those variables like this: echo "MY_RO_AREA = $MY_RO_AREA"
On Ubuntu-core the literal part of the string is doubled:
jwcoates at localhost:~$ snap run tester
MY_RO_AREA = /snap/tester/x1
MY_RO_AREA_BAD = /snap/tester/x1/etc/myro/etc/myro <<<<<<<<<
MY_RW_AREA = /var/snap/tester/x1
MY_RW_AREA_BAD = /var/snap/tester/x1/myrw/myrw <<<<<<<<<
jwcoates at localhost:~$ snap --version
On Ubuntu classic the $SNAP variables are not expanded (exact same snap executed):
netop at Snappy-Appliance:~$ sudo snap run tester
MY_RO_AREA = $SNAP
MY_RO_AREA_BAD = $SNAP/etc/myro
MY_RW_AREA = $SNAP_DATA
MY_RW_AREA_BAD = $SNAP_DATA/myrw
netop at Snappy-Appliance:~$ snap --version
Anyone else seeing this ?
From: snapcraft-bounces at lists.snapcraft.io [mailto:snapcraft-bounces at lists.snapcraft.io] On Behalf Of Kyle Fazzari
Sent: Friday, February 24, 2017 2:06 PM
To: snapcraft at lists.snapcraft.io
Subject: Re: snapcraft 2.27 has been released
On 02/24/2017 10:49 AM, Claudio André wrote:
> 2017-02-17 10:49 GMT-02:00 Sergio Schvezov
> <sergio.schvezov at canonical.com <mailto:sergio.schvezov at canonical.com>>:
> Hello snapcrafters!
> ## Setting up environment
> No more wrapper scripts just to setup on environment entry, this is
> now tied into an app entry in `apps`. Here's a quick example:
> command: bin/vim
> VIMRUNTIME: $SNAP/share/vim/vim80
> Hi, I tried to append to path (see below). It is not supported.
> PATH: "$SNAP/usr/lib/jvm/default-java/bin:$PATH"
> I'm ok with it. But, in case this is not by design, I'm mailing you guys.
I can verify this. To clarify, this builds and runs fine, but actually results in the PATH including the string `$PATH` instead of expanding it.
Can a snapd dev comment on this? Is that intended?
Kyle Fazzari (kyrofa)
kyle at canonical.com
This e-mail and any attachments to it may contain confidential and proprietary material and is solely for the use of the intended recipient. Any review, use, disclosure, distribution or copying of this transmittal is prohibited except by or on behalf of the intended recipient. If you have received this transmittal in error, please notify the sender and destroy this e-mail and any attachments and all copies, whether electronic or printed.
More information about the Snapcraft