sources: improve missing local source error message
Metadata
Current evaluation
Merged. Updates error handling to display a clear source not found message instead of a file copy error when a local source is missing. Approved by two reviewers, passed CI, and changed 17 lines across two files.
Suggested action: —
No scores available.
Issue body
When a local source does not exist, display the appropriate "source not found" error message instead of surfacing a file copy error.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Updates error handling to display a clear source not found message instead of a file copy error when a local source is missing. Approved by two reviewers, passed CI, and changed 17 lines across two files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix that replaces generic file copy errors with a clear "source not found" message when a local source file is missing. The change improves error reporting for missing local sources. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #362 sources: fix ignore patterns in local sources | craft-parts | merged | Merged fix for local source ignore patterns. Prevents cumulative list buildup and repetitions. Approved by one reviewer, passed CI, and committed with 21 additions and 6 deletions across two files. | |
| #743 fix: add proper error messages (#738) | craft-parts | merged | Merged fix adding clearer error messages for invalid source paths and network failures. NetworkRequestError now includes the source URL. Approved by two reviewers and passed CI, resolving issue #738. | |
| #363 sources: fix ignore patterns in local sources | craft-parts | merged | Merged fix for local source ignore patterns that prevented cumulative list creation, eliminating repetitions and excessive size. Approved by reviewer, passed CI, and modified 2 files (+21/-6). | |
| #958 Add source name to error message | snapcraft | merged | Merged into master. The change improves debugging by appending the source name to the no handler to manage source error message. Approved by a reviewer and passing CI, the contribution was integrated. | |
| #1599 fix(sources): detect local file source changes | craft-parts | open | Adds change detection for local file sources in FileSourceHandler, fixing issue #1364. Has 2 unresolved review comments and some failing CI checks. | |
| #96 many: fix source ignore patterns (CRAFT-375) | craft-parts | merged | Merged fix for source ignore patterns preventing locally generated files from being pulled as sources. Updates allow custom ignore patterns for outputs and correctly ignore work directories. Approved by two reviewers with passing CI checks. | |
| #961 sources: refactor local source into module. | snapcraft | merged | Merged after approval and CI. Refactored the local source into sources/_local.py, advancing Launchpad bug #1648906. Modified four files with a +236/-191 line change and slightly increased overall code coverage. | |
| #38 sources: add the local source handler | craft-parts | merged | Merged the local source handler for pull and update operations on host filesystem sources. Ported from snapcraft, the change was approved by two reviewers, passed CI, and added 522 lines across three files. |