Organize does not raise error if source file does not exist
Metadata
Current evaluation
craft-parts organize silently succeeds when a non-glob source file does not exist, so a renamed/missing file in a rockcraft.yaml organize mapping is not caught at build time. Maintainer confirmed root cause (empty glob iterator) in 2023; no fix landed.
Suggested action: keep open
Reason: Maintainer tigarmo diagnosed the root cause on 2023-09-15 (empty glob iterator in organize.py means a missing non-glob source is silently skipped), and the current code still uses base.glob() with no error when src_count == 0, so the bug is unfixed. It is a real correctness bug (silent missing files in built rocks) with a clear, small fix, but it has no labels/assignee and no recent activity, so it should stay open pending triage rather than be closed.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
55
Quick Win:
33.0
Staleness:
62
Complexity:
40
Confidence:
80
Support Request:
5
|
keep open | craft-parts organize silently succeeds when a non-glob source file does not exist, so a renamed/missing file in a rockcraft.yaml organize mapping is not caught at build time. Maintainer confirmed root cause (empty glob iterator) in 2023; no fix landed. | |
| qwen/qwen3.8-27b |
Impact:
50
Quick Win:
32.5
Staleness:
70
Complexity:
35
Confidence:
80
Support Request:
5
|
keep open | craft-parts 'organize' silently succeeds when a mapped source file does not exist, because the glob expansion yields an empty iterator and the loop is skipped. Maintainer confirmed root cause in 2023; no fix found in current code or history. Open, unlabelled, last activity 538 days ago. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
92
Complexity:
20
Confidence:
80
Support Request:
10
|
needs triage | Bug report where craft-parts organize silently ignores missing source files instead of raising an error. Unlabeled and unresponded to by maintainers for over two years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
30
Confidence:
80
Support Request:
5
|
needs triage | Bug report stating organize silently succeeds when source files are missing. Open for nearly three years with no maintainer labels or response, though a contributor identified the likely code cause. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
30
Confidence:
60
Support Request:
5
|
needs triage | The organize keyword silently ignores missing source files instead of raising an error. Likely caused by an empty iglob iterator. Issue remains open with Jira ticket CRAFT-2943 created. Last activity 465 days ago. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1663233 Confusing error message for "organize" when source refers to multiples items and destination doesn't end up with / | snapcraft (launchpad) | open | Snapcraft 2.26 (2017) reports a misleading 'already exists' error when an organize glob matches multiple items and the destination lacks a trailing slash; reporter suggests auto-treating the destination as a directory. No maintainer response; code has since moved to craft-parts. | |
| #1844801 Organize has different move behavior when using wildcard | snapcraft (launchpad) | open | Snapcraft organize keyword moves directory contents for literal paths but the directory itself for glob/wildcard paths, causing confusing 'already exists' errors. No maintainer response in 7 years; behavior still present in craft-parts organize code. Needs triage. |