Closed deadc0de6 closed 1 year ago
Sorry for not getting back to you. You're probably better off going to the Snapcraft forum for general Snapcraft problems like this.
The root cause seems to be that your snapcraft.yaml
file is referencing files outside of the project (which is the ./packages
subdirectory with the way you're invoking the action):
https://github.com/deadc0de6/dotdrop/blob/master/packages/snap/snapcraft.yaml#L35
Your project files get copied to a directory within a container before running the build. For the location the project appears at within the container, ../..
escapes to the root of the container filesystem. It then gets confused trying to access some files under /sys
.
You'd be best off restructuring your project so you can run snapcraft
from the base of the repository. This would mean moving packages/snap/snapcraft.yaml
to one of the following locations, and using source: .
:
snap/snapcraft.yaml
build-aux/snap/snapcraft.yaml
snapcraft.yaml
.snapcraft.yaml
@jhenstridge thanks for your answer, it makes sense, I've refactored the layout and it worked :+1:
I'm not sure what I'm doing wrong here, can you help me? I'm using
snapcore/action-build
in github action and it fails with following error during the build step. I tried usingubuntu-20.04
as well as usingactions/checkout@v2
with no success.This runs on this repository
here's my github action