Updating build with organize can result in "destination path already exists"
Metadata
Current evaluation
Closed without resolution. Snapcraft's automatic rebuild fails when organize globs map to the same directory twice, causing a path conflict. No fix or follow-up was documented.
Suggested action: —
No scores available.
Issue body
The snapcraft CLI recently gained the ability to detect source changes and automatically rebuild the part. However, this exposes a shortcoming in the organize logic where globs can't be organized into the same directory twice. See https://sentry.io/share/issue/1cf002d0cc194fd8bd5033fa1dbaac04/ for more information.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Snapcraft's automatic rebuild fails when organize globs map to the same directory twice, causing a path conflict. No fix or follow-up was documented. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without documented resolution. Snapcraft fails when auto-rebuilding and organizing globs into the same directory, triggering a destination path conflict. No fix or workaround was recorded. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6168 Can't "build-time resolve" staged symlinks with `organize` | snapcraft | closed | Closed without resolution. The snapcraft organize symlink handling bug remains unfixed, with no comments, duplicates, or follow-up actions recorded before closure. | |
| #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. | |
| #1599709 organize feature deletes destination folder, is surprising | snapcraft (launchpad) | closed | Reported that snapcraft's organize feature deletes destination directories before moving files. Closed with zero comments, indicating the issue was abandoned without a fix or resolution. | |
| #1807553 Snapcraft crashes when updating parts using organize key | snapcraft (launchpad) | open | 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. | |
| #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. |