← Back to issue list

Support Snapcraft advanced grammar in plugin parameters?

View original Github issue

Metadata

Project
craft-application
Number
#985
Type
issue
State
open
Author
brlin-tw
Labels
Type: Enhancement
Created
2026-01-05 02:40:08+00:00
Updated
2026-01-05 20:12:04+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Not exactly sure as the implementation of advanced grammar seems to be in the Snapcraft project, will that be reusable here? ### Why it needs to get done Hello, I would like to implement the following Snapcraft part definition: ```yaml parts: main: plugin: cmake cmake-parameters: - to armhf: - -DGGML_VULKAN=OFF - else: - -DGGML_VULKAN=ON ``` However this errors with: ```text $ snapcraft pack --debug Bad snapcraft.yaml content: - input should be a valid string (in field 'parts.main.cmake-parameters[10]') - input should be a valid string (in field 'parts.main.cmake-parameters[11]') ``` as (AFAICT) plugin parameters do not have advanced grammar support. This feature is especially helpful in Snapcraft as architecture-specific build configurations are quite common.

Evaluation history

No evaluation history available.