← Back to issue list

fix(charm-libs): better error message on bad version type

View original Github issue

Metadata

Project
charmcraft
Number
#1955
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1955 fixed #1954 in commit 31418c9c, producing a clear Pydantic validation error when a charm-libs version is not a string.

Resolution: closed resolved

Reason: The approved PR was merged as commit 31418c9c. It replaced the unhelpful integer-version failure with a validation error requiring a string.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Fixes #1954

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1955 fixed #1954 in commit 31418c9c, producing a clear Pydantic validation error when a charm-libs version is not a string.
stealth/space-bunny-alpha — closed resolved Merged PR #1955 fixed #1954 by replacing the unhelpful error for integer charm-libs versions with a clear validation error requiring a string.
qwen/qwen3.6-35b-a3b — — Merged to resolve issue #1954 by improving the error message for invalid version types in charm-libs. Approved by two reviewers with a minimal two-file change.
qwen3.6-35b-a3b-mtp-q6 — — Merged a fix improving error messages for invalid version types in charm-libs, resolving issue #1954. Authored by maintainer lengau.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#1954 (confidence 100%)

    The issue about an unhelpful charm-libs version type error was fixed by PR #1955.

Related issues

Issue Project State Summary Similarity
#1954 error message is unhelpful when parsing charmcraft.yaml fails because `charm-libs[*].version` is an integer charmcraft closed Integer charm-libs versions now produce a clear string-validation error instead of an AttributeError; fixed by merged PR #1955 (commit 31418c9c).
79%