← Back to issue list

Organize leaves empty parent directories behind

View original Launchpad issue

Metadata

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

Current evaluation

Organize leaves emptied source-parent directories in the snap; craft-parts still needs to prune them, but the report remains untriaged.

Suggested action: needs triage

Reason: The report provides an exact dump layout, organize mappings, and the unwanted resulting directories. Current craft_parts/executor/organize.py moves source files without pruning their emptied parents, so the behavior appears unresolved; however, the Launchpad report has no labels, assignee, or maintainer comments, so it still needs triage.

Evaluated by: mr-cal-bot

Impact: 34 Quick Win: 17 Complexity: 43 Confidence: 93 Actionability: 86

Issue body

Say I have the following layout: src/foo/configs/my.conf src/foo/scripts/start-my-thing And my YAML: # [...] parts:     my-part:         plugin: dump         source: src/foo         organize:             configs/my.conf: my-conf-dir/my.conf             scripts/start-my-thing: bin/start-my-thing As things are now, the snap will contain an empty `configs` directory as well as an empty `scripts` directory, which need to be filtered out via the `stage`/`snap` keywords. This is probably something that can be fixed in the organize code (removing empty parent directories) instead of expecting the user to track it.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 34
Quick Win: 17
Complexity: 43
Confidence: 93
Actionability: 86
needs triage Organize leaves emptied source-parent directories in the snap; craft-parts still needs to prune them, but the report remains untriaged.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 14
Complexity: 40
Confidence: 70
Actionability: 80
keep open The organize feature leaves empty parent directories behind when files are moved, requiring users to filter them via stage/snap keywords. Issue is open with no maintainer response or labels.
qwen/qwen3.8-27b
Impact: 25
Quick Win: 15
Staleness: 95
Complexity: 40
Confidence: 50
Support Request: 10
needs triage Snapcraft's organize keyword leaves empty parent directories in the snap after moving files, requiring manual stage/snap filtering. Filed by a maintainer in 2015 with a clear reproduction; 0 comments, no labels, no maintainer response in 10 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 10
close stale Snapcraft's organize directive leaves empty parent directories after moving files, requiring manual stage/snap filtering. Issue is over 9 years old with no maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 85
Support Request: 10
close stale The organize directive leaves empty parent directories after moving files, requiring manual stage/snap filtering. The report is nearly 10 years old with no maintainer labels or comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 85
Support Request: 15
close stale The organize directive leaves empty parent directories after moving files, requiring manual filtering. The issue is nearly a decade old with no maintainer interaction or labels.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.