← Back to issue list

internal errors for `all` platform

View original Github issue

Metadata

Project
craft-application
Number
#692
Type
issue
State
open
Author
mr-cal
Labels
Created
2025-03-24 23:04:16+00:00
Updated
2025-05-23 17:26:45+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

```yaml name: testcraft version: "0.1" base: ubuntu@24.04 platforms: all: parts: my-test: plugin: nil ``` ```bash craft-application/testcraft> python3 ./__main__.py pack testcraft internal error: 1 validation error for dict[literal['platforms'],dict[str,Platform]] platforms.all Input should be a valid dictionary or instance of Platform [type=model_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.10/v/model_type ``` It's not surprising for a user to attempt to use `all` in `build-on`. Previously, Snapcraft would get to unmarshal the project and produce a user-friendly error like: ``` > snapcraft pack Bad snapcraft.yaml content: - 'all' cannot be used for 'build-on' (in field 'platforms') ``` Similar to #690

Evaluation history

No evaluation history available.