Hi @popey, thank you for the reply.
My understanding is that this version-script part only prints debug information, so I guess we can simply remove it from the generated yaml
No. It doesn’t “just print”. It’s called in order to print the git tag, which becomes the version number stamped on the snap. However, it’s a bit odd to have both version: gitandversion-script in the same snap. Typically you have one or the other.
In the case of gtk-common-themes we don’t want to get the version based on a part. We really want it based on the git repository of gtk-common-themes. I’ve just pushed a fix that will give you a valid version even if git describe fails. This should satisfy the Yaru CI builds as well as gtk-common-themes snap builds.
The way Yaru’s CI is trying to build gtk-common-themes essentially uses a frankenstein combination of two snapcraft.yaml files. One half comes from the gtk-common-themes repository and is gated by that project’s CI, and the other half is a patch in the Yaru repository.
My preferred solution is to have Yaru’s CI stop trying to build gtk-common-themes, and instead trigger that project’s CI to perform a rebuild. We just need to get the pieces in place to make this possible (in particular, having the gitlab CI build against a non-default branch of Yaru).