← Back to issue list

Snapcraft crashes when updating parts using organize key

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft crashes with shutil.Error when a part's organize key maps a directory into its own subpath during non-clean rebuilds; no maintainer response, no labels, no reproducible steps, and the organize code has since been rewritten in craft-parts.

Suggested action: close stale

Reason: The issue is ~7.7 years old (last activity 2727 days ago) with zero comments, no labels, and no maintainer interaction. The organize implementation has since been substantially reworked in craft-parts (e.g. commit ae1de9f6 'fix: handle trying to organize a file to itself', plus multiple organize fixes), and the current code explicitly handles the 'organize a directory to itself' case with a samefile check. The original crash signature is from a legacy snapcraft version that is no longer supported, and the reporter never provided reproducible steps.

Impact: 35 Quick Win: 14.0 Staleness: 95 Complexity: 60 Confidence: 60 Support Request: 10

Issue body

Bug reproducible steps undetermined, but it occurs after a few snap builds and I modify the snap/local/utilities/parts-nano-override-pull.bash script and start a non-clean rebuild. Crash signature: ``` shutil.Error: Cannot move a directory '/home/ubuntu/nano-snap/parts/utilities/install/assets' into itself '/home/ubuntu/nano-snap/parts/utilities/install/assets/utilities/'. ``` The full snap tree at the moment is attached, also the stack trace file.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 14.0
Staleness: 95
Complexity: 60
Confidence: 60
Support Request: 10
close stale Snapcraft crashes with shutil.Error when a part's organize key maps a directory into its own subpath during non-clean rebuilds; no maintainer response, no labels, no reproducible steps, and the organize code has since been rewritten in craft-parts.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 60
Confidence: 90
Support Request: 5
close stale Snapcraft crashes with a shutil.Error during part updates using the organize key. Reported over seven years ago with no reproduction steps, maintainer comments, or activity. Likely outdated due to significant project changes.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 60
Confidence: 90
Support Request: 5
close stale Snapcraft crashes with a shutil.Error when updating parts using the organize key. Reported over seven years ago with undetermined repro steps and zero maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 65
Confidence: 90
Support Request: 10
close stale Unresolved Snapcraft crash during non-clean rebuilds after modifying parts scripts, causing a directory move error. Reported over seven years ago with no maintainer engagement or follow-up.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 65
Confidence: 85
Support Request: 10
close stale Snapcraft crash during part updates involving the organize key. Reported over 7 years ago with undetermined repro steps and no maintainer response.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: craft-parts#1201 (confidence 55%)

    Commit ae1de9f6 'fix: handle trying to organize a file to itself' addresses the same class of self-referential organize crash; the current organize.py also has an explicit samefile guard for directories.

Related issues

No related issues found above the similarity threshold.