package: make use of snapcraftctl snapcraft features
Metadata
Current evaluation
Merged. Replaced prepare, build, and install with override-pull and override-build. Integrated snapcraftctl set-version and set-grade to fix LP: #1758958. Changes shipped in the 2.42 release, with full version management deferred to a follow-up.
Suggested action: —
No scores available.
Issue body
Use override-pull and override-build instead of their respective prepare, build
and install counterparts.
Also, switch to using `snapcraftctl set-version` instead of
`version: git` leveraging the version value to also
`snapcraftctl set-grade`.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [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`?
-----
Fixes [LP: #1758958](https://bugs.launchpad.net/snapcraft/+bug/1758958)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Replaced prepare, build, and install with override-pull and override-build. Integrated snapcraftctl set-version and set-grade to fix LP: #1758958. Changes shipped in the 2.42 release, with full version management deferred to a follow-up. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged updates to replace legacy packaging hooks with override-pull and override-build. Adopted snapcraftctl set-version and set-grade for version management. Resolves LP: #1758958 and shipped in snapcraft 2.42. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Replaces prepare, build, and install steps with snapcraftctl override-pull and override-build. Implements snapcraftctl set-version and set-grade to resolve LP: #1758958 and support the 2.42 release. |
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. |