← Back to issue list

Charmcraft cannot parse a dev version build for multipass

View original Github issue

Metadata

Project
charmcraft
Number
#1917
Type
issue
State
open
Author
jat-canonical
Labels
Type: Bug
Created
Updated
Closed

Current evaluation

Charmcraft pack fails with InvalidVersion on dev multipass builds (e.g. 1.15.0-dev.2929.pr661). Root cause traced to craft-providers version parsing; upstream fix landed in craft-providers. Issue is triaged and effectively resolved upstream.

Suggested action: keep open

Reason: Maintainer lengau triaged this, confirmed the error originates in craft-providers (not charmcraft), and filed upstream bug canonical/craft-providers#661. The fix 'fix(multipass): parse dev multipass versions' (d7cfb80) is present in craft-providers, and charmcraft depends on craft-providers>=3.7.1. The issue is a real bug that was properly triaged and addressed upstream, so it should remain open until the reporter confirms the fix or a maintainer closes it.

Impact: 50 Quick Win: 30.0 Staleness: 55 Complexity: 40 Confidence: 75 Support Request: 10

Issue body

### Bug Description charmcraft throws invalid version for a dev build of multipass which follows sematic versioning spec. ### To Reproduce * Install a dev build of multipass * Run `charmcraft pack` ### Environment OSX 15.0 (Sequioa) ### charmcraft.yaml ```yaml N/A ``` ### Relevant log output ```shell charmcraft internal error: InvalidVersion("Invalid version: '1.15.0-dev.2929.pr661'") Full execution log: '/Users/X/Library/Logs/charmcraft/charmcraft-y-z.log' ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 50
Quick Win: 30.0
Staleness: 55
Complexity: 40
Confidence: 75
Support Request: 10
keep open Charmcraft pack fails with InvalidVersion on dev multipass builds (e.g. 1.15.0-dev.2929.pr661). Root cause traced to craft-providers version parsing; upstream fix landed in craft-providers. Issue is triaged and effectively resolved upstream.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 15
Confidence: 90
Support Request: 0
close stale Charmcraft fails to parse a valid semver dev version from multipass, causing a build error. Maintainer identified the root cause as an upstream issue in craft-providers and linked a fix there.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 80
Support Request: 0
close stale Charmcraft fails to parse a dev version of multipass. Maintainer identified the root cause in craft-providers and linked an upstream issue. Issue remains open but inactive.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 80
Support Request: 0
close stale Charmcraft fails to parse a dev version of multipass, causing an InvalidVersion error during pack. A maintainer identified the root cause in the craft-providers dependency and opened an upstream issue, but the report has been inactive for over 7 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 20
Confidence: 85
Support Request: 0
close stale charmcraft fails parsing multipass dev version strings during pack, throwing an InvalidVersion error. The bug originates in craft-providers and was reported upstream. Currently awaiting upstream resolution after maintainers collected version details.

Update history

No update history recorded yet.

Related work

  • Caused By: canonical/craft-providers#661 (confidence 90%)

    lengau explicitly stated the error comes via craft-providers and filed this upstream bug; the fix commit d7cfb80 'fix(multipass): parse dev multipass versions' addresses it.

Related issues

Issue Project State Summary Similarity
#838 Permission issues when using multipass provider charmcraft closed Resolved in Charmcraft 2.4.0+. The multipass provider permission denied error during charm file transfer was fixed. Upgrade to the latest version to apply the fix.
71%