← 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. 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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged. Introduces snapcraftctl set-version to configure snap versions from scriptlets, resolving issue #1676. Establishes reusable infrastructure for future setter commands.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2002 many: add snapcraftctl command for scriptlets snapcraft merged Merged. Adds snapcraftctl CLI for scriptlet-to-Snapcraft communication. Introduces snapcraftctl build for override-build, resolving #1675 and LP: #1751749. Approved with passing CI across 28 files.
80%
#1746 cli: add version command snapcraft merged Merged after reviewer approval and passing CI. Adds a CLI version command to snapcraft, resolving feedback on click message parameters, type checking, and whitespace before final merge.
76%
#2067 many: add snapcraftctl set-grade snapcraft merged Merged. Introduces snapcraftctl set-grade for scriptlet-based snap grade configuration and adds final YAML validation before snap.yaml generation. Resolves #2064. Approved, passed CI, and modified 20 files.
72%
#2278 snap: pull early snapcraft merged Merged a one-line change to execute snapcraftctl pull before snapcraftctl set-version. Approved by one reviewer, passed CI checks, and modified a single file.
72%
#3683 commands: add snap command snapcraft merged Merged into snapcraft/7.0. Implements legacy snap command support for package creation and fixes output parameter passing to managed instances. Approved by reviewer with passing CI checks.
71%