Gadget snap cannot be built twice
Metadata
Current evaluation
Building a gadget snap twice in the same directory fails with a 'gadget.yaml and prime/meta/gadget.yaml are the same file' error on snapcraft 2.22.1. Unlabelled, no comments, 3561 days old, references a deprecated version.
Suggested action: needs triage
Reason: The issue is 3561 days old with zero comments, no labels, and no maintainer interaction, so it has never been triaged. It references snapcraft 2.22.1, a version no longer supported, and the repo layout shows a modern snapcraft/meta/ directory suggesting the gadget handling code has been substantially reworked since. A commit 'feat: mediate creation of gadget.yaml and kernel.yaml (#6369)' hints the gadget.yaml creation path was later refactored, which may have resolved this, but I could not confirm the fix or reproduce the issue, so a human should verify before closing.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
15.0
Staleness:
95
Complexity:
40
Confidence:
55
Support Request:
10
|
needs triage | Building a gadget snap twice in the same directory fails with a 'gadget.yaml and prime/meta/gadget.yaml are the same file' error on snapcraft 2.22.1. Unlabelled, no comments, 3561 days old, references a deprecated version. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
10
|
close stale | Reports a snapcraft build error when running twice in the same directory for a gadget snap. Issue is over 9 years old, unlabelled, has no comments, and references a deprecated snapcraft version. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
30
Confidence:
90
Support Request:
10
|
close stale | Reported build failure when running snapcraft twice in the same directory for a gadget snap, citing a duplicate gadget.yaml file error. Unaddressed for nearly a decade on an obsolete snapcraft version. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
30
Confidence:
95
Support Request:
10
|
close stale | Reports a build error when running snapcraft twice in the same directory for a gadget snap. The issue is over 9 years old, has no maintainer interaction, and references an obsolete snapcraft version. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
25
Confidence:
90
Support Request:
5
|
close stale | Building a gadget snap twice in the same directory fails with a duplicate gadget.yaml error. Open with zero comments and inactive since submission; requires triage and assignment. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#6369
(confidence 35%)
Commit 'feat: mediate creation of gadget.yaml and kernel.yaml (#6369)' reworked how gadget.yaml is created, which is the exact code path implicated in this bug, but I could not inspect the diff to confirm it fixes the double-build failure.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1875524 remote-build doesn't work with gadget snaps | snapcraft (launchpad) | open | snapcraft remote-build fails to copy gadget.yaml to the generated Launchpad project, breaking gadget snap builds. Unlabelled, zero comments, inactive ~6 years. The remote-build command was removed in snapcraft 2.0, so the issue no longer applies. |