← Back to issue list

Removed files from local sources remain in the part

View original Github issue

Metadata

Project
craft-parts
Number
#851
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Bug
Created
Updated
Closed
—

Current evaluation

Local-source updates leave deleted files in the part source tree; a maintainer-added regression test confirms the bug remains reproducible.

Suggested action: keep open

Reason: The issue is triaged as a bug, and the maintainer-provided test `test_pulling_twice_removes_deleted_source_files` fails before the fix while 205 local-source tests pass. Current `LocalSource.update()` copies detected files and directories but has no removal path for destinations deleted upstream, and no resolving commit or merge is identified.

Evaluated by: mr-cal-bot

Impact: 62 Quick Win: 30 Complexity: 45 Confidence: 93 Actionability: 88

Issue body

### Bug Description See: https://github.com/canonical/charmcraft/issues/710 Deleting a file from a local source doesn't remove it from the part's `src` directory ### To Reproduce See: https://github.com/canonical/charmcraft/issues/710 ### part yaml ```shell parts: data: plugin: dump source: . ``` ### Relevant log output ```shell n/a ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 62
Quick Win: 30
Complexity: 45
Confidence: 93
Actionability: 88
keep open Local-source updates leave deleted files in the part source tree; a maintainer-added regression test confirms the bug remains reproducible.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 17
Complexity: 50
Confidence: 85
Actionability: 85
keep open Deleted files from local sources remain in the part's src directory after subsequent pulls. Issue is triaged with a reproducer branch and test added by maintainer, but fix not yet implemented.
qwen/qwen3.8-27b
Impact: 50
Quick Win: 28
Staleness: 35
Complexity: 45
Confidence: 85
Support Request: 0
keep open Bug: files deleted from a local source directory are not removed from the part's src directory on a second pull. Triaged; a maintainer provided a reproducer branch and failing unit test, awaiting implementation. Bug still present in current code.
qwen/qwen3.6-35b-a3b
Staleness: 45
Complexity: 35
Confidence: 90
Support Request: 0
keep open Bug where deleting files from a local source directory does not remove them from the part's src directory after a second pull. Triaged, with a maintainer-provided reproducer and failing test waiting for implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 15
Complexity: 40
Confidence: 90
Support Request: 5
keep open Bug where deleting files from a local source directory does not remove them from the part's build directory during subsequent pulls. Currently triaged, with a maintainer-provided reproducer branch and failing test awaiting implementation.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#710 (confidence 98%)

    The referenced Charmcraft reproducer tracks its upstream fix here and remains open.

Related issues

No related issues found above the similarity threshold.