← Back to issue list

deprecations: add deprecation notice for version-script (dn10)

View original Github issue

Metadata

Project
snapcraft
Number
#2639
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #2639 in commit 59ec3601b, adding a DN10 notice that version-script is deprecated in favor of the snapcraftctl set-version part scriptlet.

Resolution: closed resolved

Reason: The approved PR was merged as commit 59ec3601b. Its change adds the deprecation warning and directs users to snapcraftctl set-version.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Part script `snapcraftctl set-version` is the currently recommended method for dynamically determining the snap version information. See 'https://docs.snapcraft.io/using-external-metadata' for additional information on `snapcraft set-version`. Output looks something like: ``` Priming <project> 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). The version has been set to '<version>' Snapping '<project>' \ Snapped <snap> ``` Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #2639 in commit 59ec3601b, adding a DN10 notice that version-script is deprecated in favor of the snapcraftctl set-version part scriptlet.
stealth/space-bunny-alpha — closed resolved Merged PR #2639 (commit 59ec3601) adds deprecation notice DN10 for the version-script keyword, pointing users to snapcraftctl set-version. +10/-3 lines, approved and merged 2019-07.
stealth/space-bunny-alpha — closed resolved Merged PR #2639 (commit 59ec3601b), adding deprecation notice DN10 for version-script and recommending snapcraftctl set-version.
qwen/qwen3.6-35b-a3b — — Merged. Adds deprecation notice dn10 for the version-script keyword, directing users to snapcraftctl set-version. Approved by reviewer, passed CI, and achieved 100% diff coverage. Maintainer linked to official deprecation documentation.
qwen3.6-35b-a3b-mtp-q6 — — Merged deprecation notice dn10 for the version-script keyword, directing users to snapcraftctl set-version. Adds runtime warning, links to official documentation, and maintains 100% diff coverage.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1656265 deprecation notices should be on the guide snapcraft (launchpad) closed Updated deprecation notices to point to the consolidated Snapcraft documentation in snapcore/snapcraft PR #1048 (commit bfd896a11).
70%