Permission denied when building with snapcore/snapcraft

Any update on this? The bug https://github.com/snapcore/snapcraft/pull/2240 appears to have been fixed. But I’ve just had the same error using the most recent ‘latest’ docker image :frowning: For info I’m using the configs in this PR: https://github.com/zaproxy/zaproxy/pull/4965

Use the docker image tagged stable as @sergiusens stated above.

And as I stated above, the stable docker image does build the snap, but when you try to run the zaproxy snap it fails with ‘desktop-launch: not found’.

Sorry, I missed that bit :man_facepalming:.

I’m not sure what else to suggest then, beyond coming across really arsey by suggesting completely changing your entire infrastructure to use snapcraft outside of a docker image (I appreciate that’s really not helpful :frowning: )

Its a pain because it was working until this bug reared its head.
I dont want to change my desktop distro just to satisfy one tool, but I can ask someone else who uses ubuntu to generate the snap.
But I would have thought an option for people who dont use ubuntu would be worth supporting…

did you consider using the lxd snap for container builds instead of docker ? (not sure how well this setup works on other distros, but perhaps it would be worth a try)

I’ve used docker a fair amount but not used lxd at all, which is why I went for docker. I dont have a problem using lxd but it’ll probably take me a while to get up to speed with it.

depending on your host distro, this should work:

For a dirty but quick build, use this one :wink:

I built the repo that was mentioned, check the asciinema video and it all worked (desktop-launch was found at least).

snapcraft/snapcore:latest is now fixed with 2.43.1

snapcraft/snapcore:stable also has 2.43.1 as well