The ‘build’ keyword has been replaced by 'override-build’
introduced in snapcraft 2.41
build scriptlet was originally introduced as a way to override the default
build step with one’s own logic.
However, as part of an effort to add support for Snapcraft to have this for all lifecycle steps (i.e. not just build), a new scriptlet has been added that works similarly called
The biggest difference is that you can now call
snapcraftctl build to run the default
See Deprecation notices for further announcements.
Last updated 2 years ago. Help improve this document in the forum.