← Back to issue list

Gadget snap cannot be built twice

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1646081
Type
issue
State
open
Author
~zyga
Labels
—
Created
Updated
Closed
—

Current evaluation

Second gadget-snap builds failed on gadget.yaml versus prime/meta/gadget.yaml; fixed by PR #3767 (c06e4df03).

Suggested action: close resolved

Reason: The report includes a precise command-line reproducer on Snapcraft 2.22.1, and the issue index identifies PR #3767 as the fix. Snapcraft history confirms that PR was merged as commit c06e4df03.

Evaluated by: mr-cal-bot

Impact: 38 Quick Win: 31 Complexity: 15 Confidence: 99 Actionability: 95

Issue body

Building the pi2 gadget snap twice in the same directory results in an error message about meta/gadget.yaml zyga@xenial-server:~/snappy-hub/pi2$ snapcraft Skipping pull prebuilt (already ran) Skipping build prebuilt (already ran) Skipping stage prebuilt (already ran) Skipping prime prebuilt (already ran) 'gadget.yaml' and '/home/zyga/snappy-hub/pi2/prime/meta/gadget.yaml' are the same file zyga@xenial-server:~/snappy-hub/pi2$ snapcraft --version 2.22.1

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 38
Quick Win: 31
Complexity: 15
Confidence: 99
Actionability: 95
close resolved Second gadget-snap builds failed on gadget.yaml versus prime/meta/gadget.yaml; fixed by PR #3767 (c06e4df03).
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 22
Complexity: 10
Confidence: 85
Actionability: 80
close resolved Building a gadget snap twice in the same directory fails with 'gadget.yaml and prime/meta/gadget.yaml are the same file' error. Fixed in PR #3767.
qwen/qwen3.8-27b
Impact: 25
Quick Win: 15
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.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#3767 (confidence 100%)

    The fix avoids copying gadget.yaml onto itself and was merged in commit c06e4df03.

Related issues

Issue Project State Summary Similarity
#1638824 Support gadget snaps snapcraft (launchpad) closed Gadget snap support (including gadget.yaml handling) was merged to snapcore/snapcraft via PR #886, commit 5610f0eaf 'Support for gadget snaps (#886)', after a successful PC gadget build; the launchpad issue was then closed.
72%
#886 Support for gadget snaps snapcraft merged Merged PR #886 added gadget snap support, including gadget.yaml handling, in commit 5610f0eaf.
70%
#1560481 snapcraft prints 'architectures' when trying to build a gadget snap snapcraft (launchpad) closed Gadget-snap build support was added in commit 5610f0eaf (PR #886).
70%