Version-script deprecated, cannot find docs

Hiya,

in fluxctl, we use version-script.

The most recent version of snapcraft now tells me:

Priming fluxctl 
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).

Unfortunately https://snapcraft.io/docs/deprecation-notices/dn10 does 404.

Trying to find this in the docs, I searched for version-script 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 version-script to set-version?

Have a great day,
Daniel

I’m not sure where the docs have gone but this is what I did in response to the same warning: https://git.launchpad.net/~mwhudson/+git/gosnap/commit/?id=a5eb1189e198ac9b56861e50f667198c6dfb585c

1 Like

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 version-script.