Node snaps don't work out of the box with classic confinement
Metadata
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.