I’ve created a snap for gradle. The snapcraft.yml file works fine when base is
core20. However it shows the following error when I switch to
Copying needed target link from the system /etc/ssl/certs/java/cacerts
The command 'opt/gradle/bin/gradle' was not found in the prime directory, it has been changed to '/bin/sh'.
A shell wrapper will be generated for command '/bin/sh $SNAP/opt/gradle/bin/gradle' as it does not conform with the command pattern expected by the runtime. Commands must be relative to the prime directory and can only consist of alphanumeric characters, spaces, and the following special characters: / . _ # : $ -
When I debug the snapping process (by
snapcraft prime gradle --shell-after --debug) I can see that
prime/org/gradle/bin/gradle exists. The exact YML is here: https://github.com/tunix/gradle-snap/blob/master/snap/snapcraft.yaml