parts: copy kernel.yaml and gadget.yaml
Metadata
Current evaluation
Merged PR #3742 via c94bee075 (commit 48c34d8f0), copying gadget.yaml and optional kernel.yaml from the project root into the packaged meta directory by snap type.
Resolution: closed resolved
Reason: The approved change was merged as commit 48c34d8f0 through merge c94bee075, implementing the CRAFT-1072 metadata-copying behavior.
Evaluated by: mr-cal-bot
No scores available.
Issue body
If the snap type is gadget, then the project root gadget.yaml must be copied into meta/gadget.yaml.
If the snap type is kernel, then the project root kernel.yaml can be copied into meta/kernel.yaml
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] Have you successfully run `make lint`?
- [x] Have you successfully run `pytest tests/unit`?
-----
CRAFT-1072
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3742 via c94bee075 (commit 48c34d8f0), copying gadget.yaml and optional kernel.yaml from the project root into the packaged meta directory by snap type. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft#3742 (commit c94bee075), copying root gadget.yaml and kernel.yaml into meta/ for gadget and kernel snaps; resolves CRAFT-1072. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft#3742 (c94bee075), copying root gadget.yaml and kernel.yaml into meta/ for their respective snap types, resolving CRAFT-1072. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged implementation copying kernel.yaml and gadget.yaml into the meta directory for respective snap types. Approved by maintainer, passed CI checks, and resolved CRAFT-1072. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Automatically copies kernel.yaml and gadget.yaml to their respective meta directories during snap build, resolving CRAFT-1072. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6369 feat: mediate creation of gadget.yaml and kernel.yaml | snapcraft | merged | Merged #6369, adding a packaging API for gadget.yaml and kernel.yaml creation so unchanged contents skip repacking. | |
| #4344 Treat the gadget.yaml like other snap meta files | snapcraft | open | Enhancement to require gadget.yaml in snap/gadget.yaml instead of the project root. Triaged (CRAFT-3264); still unimplemented — both setup_assets.py (core22) and package.py (core24+) still read gadget.yaml from the project root. | |
| #6357 Mediate metadata creation for gadget and kernel snaps | snapcraft | closed | Fixed by merged PR #6369 (commit 13643760e), adding the packaging API to mediate gadget.yaml and kernel.yaml creation and skip unchanged repacking. |