Hello everyone,
I’ve noticed that builds for https://snapcraft.io/jreleaser/releases fail depending on the platform but not for all, nor for every version.
I’m using the snapcraft build pointed at https://github.com/jreleaser/jreleaser-snap/blob/master/snap/snapcraft.yaml to build the jreleaser snap, a Java based tool. There’s nothing special about except that it required a version of Java to run. Previously I found out that requiring openjdk was not enough as some symlinks would be left dangling and that caused builds to fail.
I thought I had fixed that by using the organize setting, like so:
parts:
jreleaser:
plugin: dump
source: https://github.com/jreleaser/jreleaser/releases/download/v0.8.0/jreleaser-0.8.0.tar
source-checksum: sha256/e4ca0980258f11da4d538ad4ba49364404c3c472bcdffa4cb0a4225e5455b81c
stage-packages:
- curl
- openjdk-8-jre
- ca-certificates
- ca-certificates-java
organize:
'usr/lib/jvm/java-8-openjdk*': 'usr/lib/jvm/java'
prime:
- -usr/lib/jvm/java/lib/security/cacerts
- -usr/lib/jvm/java/jre/lib/security/cacerts
However that appears to work for just a handful of platforms. And I still get warnings when symlinks are left hanging yet some of the builds succeed. Can anyone tell me what I’m doing wrong? TIA
Successful build: https://snapcraft.io/jreleaser/builds/1570757
Failed build: https://snapcraft.io/jreleaser/builds/1570758