← Back to issue list

Multi-base shorthand notation fail on v4.2.0

View original Github issue

Metadata

Project
charmcraft
Number
#2620
Type
issue
State
closed
Author
Maharacha
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

Multi-base shorthand validation in Charmcraft 4.2.0 was fixed by merged PR #2646 (commit 9dbd59a6), which updated craft-platforms and added regression coverage.

Resolution: closed resolved

Reason: PR canonical/charmcraft#2646 merged as 9dbd59a6 and updated craft-platforms to restore valid shorthand handling. The underlying dependency fix was merged in canonical/craft-platforms#215.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description With v4.2.0, Multi-base shorthand notation started to fail: `charmcraft.yaml`: ```yaml platforms: ubuntu@24.04:amd64: ``` ``` $ charmcraft pack charmcraft internal error: 1 validation error for PlatformCharm parts Value error, Platform 'ubuntu@24.04:amd64' declares a base in the platform's name and declares 'build-on' and 'build-for' entries. [type=value_error, input_value={'foobar-charm': {'s...'.', 'plugin': 'charm'}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.12/v/value_error Full execution log: '/home/joakim/.local/state/charmcraft/log/charmcraft-20260330-145600.940980.log' ``` ### Steps to reproduce Provide step-by-step instructions to reproduce the bug. ### Environment We need to understand the context in which Charmcraft failed. Please let us know if you are running Charmcraft in destructive mode, whether you are using LXD or Multipass, and which operating system you are running Charmcraft on. ### charmcraft.yaml ```yaml If the issue is specific to a project, share its `charmcraft.yaml`. This field automatically renders as YAML, so you don't need to add special formatting. ``` ### Log output ```shell Provide any relevant logging. This field automatically renders as a log, so you don't need to add special formatting. ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Multi-base shorthand validation in Charmcraft 4.2.0 was fixed by merged PR #2646 (commit 9dbd59a6), which updated craft-platforms and added regression coverage.
stealth/space-bunny-alpha — closed resolved Fixed the 4.2.0 multi-base shorthand regression by updating craft-platforms in merged PR #2646 (9dbd59a6); follow-up coverage landed in #2657 (2bfa73df).
stealth/space-bunny-alpha — closed resolved The stable snap was rolled back after 4.2.0 broke multi-base shorthand. A dependency update merged in #2646 (9dbd59a6); #2657 later added coverage.
qwen3.6-35b-a3b-mtp-q6 — — The v4.2.0 release breaking multi-base shorthand notation was rolled back on the stable channel. The issue is closed with no code fix, only a snap rollback to restore functionality.
qwen/qwen3.6-35b-a3b — — The v4.2.0 regression breaking multi-base shorthand notation was addressed by rolling back the stable snap channel. Version 4.2 remains in the candidate channel pending a permanent fix.
qwen/qwen3.6-35b-a3b — — Multi-base shorthand notation validation failed in charmcraft v4.2.0. Due to the severity, the stable snap channel was rolled back, keeping v4.2 in the candidate channel. The issue was closed following this rollback.
qwen3.6-35b-a3b-mtp-q6 — — The v4.2.0 multi-base shorthand validation regression was resolved by rolling back the affected snap release on the stable channel. Version 4.2 remains available in the candidate channel.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#2646 (confidence 100%)

    Merged fix updating craft-platforms and adding regression coverage for charmcraft#2620.

  • Likely Fixed By: canonical/craft-platforms#215 (confidence 98%)

    Merged upstream fix accepting valid redundant multi-base platform definitions.

  • Related To: canonical/charmcraft#2657 (confidence 97%)

    Added further tests for platform shorthand notation after the fix.

Related issues

Issue Project State Summary Similarity
#2646 fix(Project): fix shorthand multi-base notation charmcraft merged Merged as 9dbd59a6, updating craft-platforms to fix craft-application 6 multi-base shorthand notation and adding regression coverage; fixes charmcraft#2620.
79%
#81 feat: multi-base support for charm build plans craft-platforms merged Merged PR #81 as commit 519b705, adding multi-base charm build-plan support and fixing #73, with stricter shorthand validation and CraftPlatformsError.
73%
#2008 Multi-base platform support charmcraft closed Multi-base support shipped in charmcraft#2054 (commit 1ad02d82) via platforms-based recipes; the prototype was not separately polished, but the requested capability was implemented.
71%