← Back to issue list

File source handler ignores changes to the file

View original Github issue

Metadata

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

Current evaluation

Confirmed triaged bug: source-type: file lacks pull-step change detection, so touched or edited files are not recopied; dump and Python plugin cases are affected.

Suggested action: keep open

Reason: A maintainer confirmed that touching the file should trigger pull but does not, and another user reproduced stale requirements with the Python plugin. FileSource implements only provision and inherits unsupported check_if_outdated and update methods that state_manager suppresses, so the generic file-source path needs staleness detection, refresh behavior, and regression tests.

Evaluated by: mr-cal-bot

Impact: 60 Quick Win: 28 Complexity: 48 Confidence: 97 Actionability: 90

Issue body

### Bug Description The dump plugin ignores updates to the file. ### To Reproduce ``` parts: test-service: plugin: dump source: test-service.service source-type: file ``` 1. Prime this part. 2. Change test-service.service and try to prime (pack) it again. The resulting content will not be updated. ### part yaml ```shell ``` ### Relevant log output ```shell N/A ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 60
Quick Win: 28
Complexity: 48
Confidence: 97
Actionability: 90
keep open Confirmed triaged bug: source-type: file lacks pull-step change detection, so touched or edited files are not recopied; dump and Python plugin cases are affected.
qwen/qwen3.6-35b-a3b
Impact: 70
Quick Win: 45
Complexity: 20
Confidence: 85
Actionability: 80
keep open File source handler lacks `check_if_outdated` implementation, causing it to ignore file modifications and skip re-pulling during incremental builds.
qwen/qwen3.8-27b
Impact: 60
Quick Win: 27
Staleness: 20
Complexity: 55
Confidence: 75
Support Request: 5
keep open craft-parts file source handler (source-type: file) does not detect changes to the source file, so re-pulling after editing the file keeps stale content. Triaged/confirmed bug; a maintainer requested assignment on 2026-03-23 to investigate change detection.
qwen/qwen3.6-35b-a3b
Staleness: 50
Complexity: 55
Confidence: 90
Support Request: 5
keep open Bug where file source handlers ignore updates to source files, causing stale cached parts. The issue is triaged, confirmed by maintainers, and a contributor recently offered to investigate and fix it.
qwen3.6-35b-a3b-mtp-q6
Staleness: 45
Complexity: 55
Confidence: 90
Support Request: 5
keep open Bug where file source handler fails to detect file changes, causing outdated content to be primed. Triaged and acknowledged by maintainers; contributor recently volunteered to investigate and requested assignment.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#817 Local file changes are not detected craft-parts open Triaged enhancement to mark dump-plugin pull steps dirty when local sources change, including permission-only edits; a maintainer confirmed in 2026 that it remains unimplemented.
73%