← Back to issue list

Node snaps don't work out of the box with classic confinement

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1706371
Type
issue
State
open
Author
~ev
Labels
Created
2017-07-25 15:12:52.783416+00:00
Updated
2019-01-24 00:39:42.822071+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Snapcraft puts $SNAP/bin on $PATH when creating a strictly confined snap, but not on classic. This means that classic snaps using the node plugin won't find node out of the box: $ heroku /snap/heroku/485/bin/heroku: line 19: node: command not found You have to explicitly include $SNAP/bin on the $PATH: $ git diff diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 4caa0d5..1fbd2ac 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -8,7 +8,7 @@ confinement: classic apps: heroku: - command: bin/heroku + command: env PATH=$SNAP/bin:$PATH heroku parts: hello-node-snap: This is not discoverable. It requires understanding of the internals of classic confinement.

Evaluation history

No evaluation history available.