← Back to issue list

Mediate metadata creation for gadget and kernel snaps

View original Github issue

Metadata

Project
snapcraft
Number
#6357
Type
issue
State
open
Author
cmatsuoka
Labels
Status: Triaged
Created
Updated
Closed

Current evaluation

Feature request to mediate gadget.yaml and kernel.yaml creation via craft-application 7.1.0 API. The feature has been implemented and merged in PR #6369.

Suggested action: close stale

Reason: The feature described in this issue was implemented and merged in PR #6369 ("feat: mediate creation of gadget.yaml and kernel.yaml"). The current code in snapcraft/services/package.py shows that _get_gadget_yaml and _get_kernel_yaml methods now use craft-application's mediated packaging API via _read_project_metadata_file(). Since the feature was implemented elsewhere, the issue is no longer applicable.

Impact: 80 Quick Win: 32.0 Staleness: 70 Complexity: 60 Confidence: 85 Support Request: 0

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request Creation of gadget.yaml and kernel.yaml must be fully mediated according to the new craft-application 7.1.0 package service API. ### The problem it solves This feature is needed to skip repacking of gadget and kernel snaps.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 80
Quick Win: 32.0
Staleness: 70
Complexity: 60
Confidence: 85
Support Request: 0
close stale Feature request to mediate gadget.yaml and kernel.yaml creation via craft-application 7.1.0 API. The feature has been implemented and merged in PR #6369.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 65
Confidence: 90
Support Request: 5
keep open Feature request to mediate gadget.yaml and kernel.yaml creation using craft-application 7.1.0 API to skip repacking. Currently triaged and recently opened by a maintainer.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 60
Confidence: 90
Support Request: 0
keep open Feature request to mediate gadget and kernel snap metadata creation using craft-application 7.1.0 API to skip repacking. Currently triaged and fresh, awaiting implementation.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#6369 (confidence 95%)

    PR #6369 implements the exact feature requested - mediating gadget.yaml and kernel.yaml creation through the craft-application package service API, enabling skipping repacks when contents are unchanged.

Related issues

Issue Project State Summary Similarity
#6358 Mediate creation of snap hook and gui assets. snapcraft open Feature request to mediate snap hook and gui assets creation using craft-application 7.1.0 mediation API. Appears implemented in PR #6379.
76%
#4982 Support `kernel.yaml` similar to `gadget.yaml` snapcraft open Request to support kernel.yaml as a snap metadata file moved to meta/ by Snapcraft. Core feature implemented via PR #3464 and #6369; remaining gadget.yaml location work tracked in #4344. Inactive 461 days.
73%
#2874 feat: mediate creation of metadata.yaml charmcraft merged Merged after two approvals. Implements craft-application's package service API to mediate metadata.yaml creation. Integrated into main despite some failing CI tests on specific Ubuntu versions, altering three files.
72%
#3742 parts: copy kernel.yaml and gadget.yaml snapcraft merged 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.
71%