Snapcraft docker missing set-version information


#1

I’m using the docker image in a github action.
I have a core18 based snap, with:
adopt-info: <part_name> at the beginning
and
override-pull: |
snapcraftctl pull
snapcraftctl set-version ...
in the relevant part
Locally it works as intended, but not in the docker image.
In the CI docker image the build itself works, but in the end I get this error: "
Failed to generate snap metadata: ‘adopt-info’ refers to part ‘jabref’, but that part is lacking the ‘parse-info’ property"


#2

could you elaborate which docker image you are using? The official snapcraft docker image does not support building core18 based snaps

I’ve filed a bug report https://bugs.launchpad.net/snapcraft/+bug/1846195
Maybe you’ve got the same problem


#3

Same issue :slight_smile:
I hoped there was a “community” docker image, as to avoid having many separate dockerfiles…


#4

@sergiusens can you elaborate on why there is no docker image for core18? We’ve talked about this in the past but I don’t remember the reasoning.


#5

It is another test candidate added to our matrix. Snapcraft using base: core18 also relies a lot on build-snaps, even internally, so special tuning most likely be required in most cases and at that point, the generic solution is not that generic.


Snapcraft PR: add official `core18` docker images