in fluxctl, we use
The most recent version of
snapcraft now tells me:
DEPRECATED: The 'version-script' keyword has been deprecated in favour of the 'snapcraftctl set-version' part scriptlet.
See http://snapcraft.io/docs/deprecation-notices/dn10 for more information.
Determining the version from the project repo (version-script).
https://snapcraft.io/docs/deprecation-notices/dn10 does 404.
Trying to find this in the docs, I
searched for which led me to
https://snapcraft.io/docs/snapcraft-yaml-reference which says
Deprecated Use snapcraftctl set-version part scriptlet instead.
This links to
https://snapcraft.io/t/using-external-metadata#meta-scriptlet - which 404s too.
Somewhere else I found
https://snapcraft.io/docs/deprecation-notice-10 which links to the same thing. It also links to https://snapcraft.io/t/deprecation-notices/8396 which 404s as well.
Where can I find more info on how to move from
Have a great day,
Super. I’ll try it out. Thanks Michael!
Sorry about these broken links. I’ve fixed them now. The quality of the search results is also something we need to improve.
We’ll also work on providing more information on how
snapcraftctl set-version can be used to replace the old functionality.
This forum post helped me migrate from
To help avoid unnecessary duplication, and for convenience, Snapcraft can process and incorporate external metadata from within snapcraft.yaml by using parse-info within a
part and a corresponding adopt-info key.
For example, the following snapcraft.yaml will parse a file called metadata-file. Snapcraft will attempt to extract version, summary and description metadata for the snap, all of which are mandatory: