← Back to issue list

organize and stage keywords together mess up file conflict checking

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1663002
Type
issue
State
open
Author
~mrjogo
Labels
Created
Updated
Closed

Current evaluation

Bug: combining organize and stage keywords makes snapcraft's file-conflict check inconsistent — a conflict error appears for staged paths but not pre-organize paths, so a duplicate file overwrites. Unlabelled, no maintainer response, inactive ~9.5 years.

Suggested action: close stale

Reason: Filed 3491 days ago with last activity 3486 days ago, 0 comments, no labels, and no maintainer acknowledgement from an external contributor. Snapcraft has since been completely rewritten (the current tree is the modern parts/models architecture), so the specific organize/stage conflict-checking code paths described are from a long-unsupported version and the original problem is very likely no longer reproducible. I could not confirm a fixing PR via tools, so confidence is moderate.

Impact: 40 Quick Win: 18.0 Staleness: 95 Complexity: 55 Confidence: 55 Support Request: 10

Issue body

The following snapcraft.yaml section gives a file conflict error ("Parts 'part1' and 'part2' have the following file paths in common which have different contents"): parts: part1: plugin: dump source: ./src1 organize: '*': opt/ stage: - -opt/commonfile.txt part2: plugin: dump source: ./src2 organize: '*': opt/ stage: - -opt/commonfile.txt However, when both stage keywords are changed to stage: - -commonfile.txt no errors are given, but commonfile.txt is copied into stage (with the later one overwriting the first). See attachment for full example.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 18.0
Staleness: 95
Complexity: 55
Confidence: 55
Support Request: 10
close stale Bug: combining organize and stage keywords makes snapcraft's file-conflict check inconsistent — a conflict error appears for staged paths but not pre-organize paths, so a duplicate file overwrites. Unlabelled, no maintainer response, inactive ~9.5 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 55
Confidence: 85
Support Request: 10
close stale Snapcraft file conflict checking fails when combining organize and stage keywords, causing incorrect staging behavior. Unlabelled, no maintainer response, inactive for over 9 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 60
Confidence: 85
Support Request: 10
close stale Bug in snapcraft where using organize and stage directives together incorrectly triggers file conflict errors or causes silent overwrites. Unresponded to for over 9 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Bug report regarding file conflict checking when using organize and stage keywords in snapcraft.yaml. Issue is over 9 years old with no maintainer interaction or labels, indicating the affected version and behavior are likely obsolete.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 5
close stale Incorrect file conflict detection when combining organize and stage keywords in snapcraft.yaml causes false positives or silent overwrites. Unassigned, no comments, inactive for years, requires triage and fix.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.