← Back to issue list

many: add override-prime scriptlet

View original Github issue

Metadata

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

Current evaluation

Merged PR #2052 via commit 15119aa7e, adding the override-prime scriptlet and a snapcraftctl prime command for running the default prime action.

Resolution: closed resolved

Reason: PR #2052 was merged as commit 15119aa7e. Its override-prime support and snapcraftctl prime command implemented and resolved feature request #1674.

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`? ----- Currently Snapcraft supports override scriptlets for the pull, build, and stage steps. This PR resolves #1674 by adding one for the prime step called `override-prime` which, if specified, overrides the part's prime step. It also adds a `prime` subcommand to `snapcraftctl` to ensure developers can still complete the default prime action.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #2052 via commit 15119aa7e, adding the override-prime scriptlet and a snapcraftctl prime command for running the default prime action.
stealth/space-bunny-alpha — closed resolved Merged PR #2052 via commit 15119aa7e, adding the override-prime scriptlet and snapcraftctl prime subcommand for overriding the prime step.
stealth/space-bunny-alpha — closed resolved Merged in #2052 (15119aa7e): added the override-prime scriptlet and a snapcraftctl prime subcommand, allowing parts to override prime while preserving the default action.
qwen/qwen3.6-35b-a3b — — Merged after approval and passing CI checks. Adds the override-prime scriptlet and prime subcommand to snapcraftctl, resolving issue #1674.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Adds the override-prime scriptlet to Snapcraft, resolving issue #1674. Includes a prime subcommand in snapcraftctl to preserve default prime behavior when overriding.

Update history

No update history recorded yet.

Related work

Related issues

Issue Project State Summary Similarity
#2049 many: add override-stage scriptlet snapcraft merged Merged in PR #2049 (commit c5ca9ef8), adding override-stage and snapcraftctl stage so overridden parts can invoke the default stage action, completing #1673.
73%
#1978966 Empty override-prime scriptlet is ignored when building against core22 snapcraft (launchpad) closed Empty override-prime handling was fixed in Snapcraft 7.1.1 on stable; the reporter confirmed the update resolved core22 builds.
72%