← Back to issue list

many: add snapcraftctl set-version

View original Github issue

Metadata

Project
snapcraft
Number
#2063
Type
pull request
State
merged
Author
kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Merged as commit 278f9b79f, adding snapcraftctl set-version for scriptlets and reusable setter infrastructure; resolves #1676.

Resolution: closed resolved

Reason: PR #2063 was merged in commit 278f9b79f, implementing version setting from scriptlets and generic infrastructure for future setters. It explicitly resolves snapcraft#1676.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? ----- This PR resolves #1676 by adding the ability to set the snap version from a scriptlet using `snapcraftctl set-version <version>`. It also lays down generic infrastructure to make adding future such "setters" easy.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged as commit 278f9b79f, adding snapcraftctl set-version for scriptlets and reusable setter infrastructure; resolves #1676.
stealth/space-bunny-alpha — closed resolved Merged as 278f9b79f, adding snapcraftctl set-version for scriptlets and reusable setter infrastructure; resolves #1676.
stealth/space-bunny-alpha — closed resolved Merged #2063 in commit 278f9b79f, adding snapcraftctl set-version for scriptlets and reusable setter infrastructure; resolves #1676.
stealth/space-bunny-alpha — closed resolved Merged in #2063 (commit 278f9b79f), adding snapcraftctl set-version for scriptlets and reusable setter infrastructure; resolves #1676.
qwen/qwen3.6-35b-a3b — — Merged. Adds snapcraftctl set-version to configure snap versions from scriptlets, resolving issue 1676. Provides reusable infrastructure for future setter commands. Approved by reviewer and passed CI checks.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Introduces snapcraftctl set-version to configure snap versions from scriptlets, resolving issue #1676 and providing infrastructure for future setter commands.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#1676 (confidence 100%)

    The request for set-version support was fixed by this merged PR.

Related issues

Issue Project State Summary Similarity
#2002 many: add snapcraftctl command for scriptlets snapcraft merged Merged PR #2002 (commit bbca282fa) added the snapcraftctl CLI for scriptlets to talk to the parent Snapcraft process, including `snapcraftctl build` and the override-build scriptlet. Resolved #1675 and LP #1751749.
82%
#1746 cli: add version command snapcraft merged Merged in snapcraft#1746 via commit 0820103ae, adding snapcraft version and snapcraft --version with matching output and tests.
73%
#1594794 Embedded version required in snapcraft.yaml snapcraft (launchpad) closed Resolved by introducing the craftctl set version=... scriptlet, enabling dynamic version generation instead of requiring a static version in snapcraft.yaml.
72%
#3626 cli: integrate craft-cli and add version command (CRAFT-730) snapcraft merged Merged into snapcraft 7.0 via commit 0457d6572: integrated craft-cli, added the version command, and retained the legacy CLI fallback for other commands.
72%
#2278 snap: pull early snapcraft merged Merged #2278 (commit 7386bed80) reordered snapcraftctl execution so pull runs before set-version.
71%