Does Snapcraft trigger set -ux?

Hello,

Today I was encountering the new change I had ever met yesterday since snapcraft was upgraded to 4.5.1 and it starts dump the commands or exit when a variable is not set in the snapcraft.yaml, and seems like snapcraft introduces something like set -ux. This is not only my local side but LP auto build, so I’m wondering if snapcraft has any changelog relevant because I didn’t see any news from 4.5.1 release note.

Thanks,

1 Like

I suspect you’re seeing the results of the following PR:

The change was included in Snapcraft 4.5, but looks like it was missed from the release notes. Based on the description, the change only affects projects using the core20 base (or any future base using the version 2 plugins).

1 Like

yeap I was building snaps with core20, thanks for information!

1 Like