My application has some yaml config files which contain absolute paths to other files. My application was designed to be packaged as a deb and those abs paths can’t be replicated on my snap.
E.g. they contain paths like /opt/stuff/file
which on snaps end up on /snap/<snapName>/current/opt/suff/file
.
I manged to patch these files by doing
override-stage: |
craftctl default
<sed command> <filepath>
And that worked fine. But now I need different sed commands and list of files to patch based on the arch the snap targets. I tried to do
override-stage:
- on amd64: |
craftctl default
But it doesn’t work
snapcraft.yaml parsing error: while scanning a simple key
in "snap/snapcraft.yaml", line 43, column 7
could not find expected ':'
in "snap/snapcraft.yaml", line 44, column 7
Is there a way to use the arch conditionals on the override-<>
sections?