← Back to issue list

main: add details to the parts specification error message (CRAFT-512)

View original Github issue

Metadata

Project
craft-parts
Number
#125
Type
pull request
State
merged
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #125 (77539309), enriching CLI parts-specification errors with the failing part, validation cause, and corrective guidance.

Resolution: closed resolved

Reason: PR #125 merged as commit 77539309, with implementation commit 63fd6833. It now reports the affected part, underlying validation failure, and review guidance.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The parts specification error when running craft-parts from the CLI tool entry point lacks information, add details on what cause the reported error. With this fix, parts errors will look like: ``` $ python -mcraft_parts Error: invalid parts specification: Part 'p1' validation failed. 'source' is required by the dump plugin Review part 'p1' and make sure it's correct. ``` 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
stealth/space-bunny-alpha — closed resolved Merged PR #125 (77539309), enriching CLI parts-specification errors with the failing part, validation cause, and corrective guidance.
stealth/space-bunny-alpha — closed resolved Merged PR #125 (77539309), improving parts-specification errors to name the failing part, explain the validation failure, and suggest review.
qwen/qwen3.6-35b-a3b — — Merged enhancement to craft-parts CLI that adds specific validation failure details to invalid parts specification errors. Approved by two reviewers and passed CI checks.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Adds detailed validation failure information to craft-parts CLI error messages for parts specifications, resolving CRAFT-512.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1036 parts: better error message when defining parts snapcraft merged Merged PR #1036 as commit 3350d3b05, improving error messages for invalid part definitions and addressing LP #1604827.
73%