many: add override-stage scriptlet
Metadata
Current evaluation
Merged override-stage scriptlet, resolving issue #1673. Introduces stage step override capability and a snapcraftctl stage subcommand for default behavior. Author fixed FakeLXD test failures prior to merge.
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`?
-----
Currently Snapcraft supports override scriptlets for both the pull and build steps. This PR resolves #1673 by adding one for the stage step called `override-stage` which, if specified, overrides the part's stage step. It also adds a `stage` subcommand to `snapcraftctl` to ensure developers can still complete the default stage action.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged override-stage scriptlet, resolving issue #1673. Introduces stage step override capability and a snapcraftctl stage subcommand for default behavior. Author fixed FakeLXD test failures prior to merge. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds the override-stage scriptlet and snapcraftctl stage subcommand, resolving #1673. Integrated after the author fixed FakeLXD mocking test failures. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds the override-stage scriptlet to Snapcraft, resolving issue #1673. Introduces a stage subcommand for snapcraftctl to maintain default behavior. Author resolved FakeLXD mocking test failures prior to merge. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2045 many: add override-pull scriptlet | snapcraft | merged | Merged: added override-pull scriptlet and snapcraftctl pull subcommand to Snapcraft. Enables overriding the plugin pull step for source patching. Fixed Local source handling to preserve pre-pull changes. | |
| #2052 many: add override-prime scriptlet | snapcraft | merged | Merged after approval and passing CI checks. Adds the override-prime scriptlet and prime subcommand to snapcraftctl, resolving issue #1674. |