With the advanced grammar, only the last `- to` clause is respected
Metadata
Current evaluation
Open, triaged Snapcraft bug: multiple advanced-grammar `to` clauses do not behave correctly, causing architecture-inappropriate packages and armhf build failures. Upstream craft-grammar#89 remains open.
Suggested action: keep open
Reason: The report provides a concrete multi-architecture reproducer, Snapcraft 8.6.1 environment, affected YAML, exact librbd-dev failure, and an inversion experiment confirming the ordering-dependent behavior. A maintainer marked the issue triaged, filed upstream craft-grammar#89, and added it to the pulse while noting that scoping is still needed; no resolving fix is identified.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
55
Quick Win:
18
Complexity:
62
Confidence:
92
Actionability:
84
|
keep open | Open, triaged Snapcraft bug: multiple advanced-grammar `to` clauses do not behave correctly, causing architecture-inappropriate packages and armhf build failures. Upstream craft-grammar#89 remains open. | |
| qwen/qwen3.6-35b-a3b |
Impact:
65
Quick Win:
27
Complexity:
45
Confidence:
80
Actionability:
75
|
keep open | Multiple `- to $ARCH:` clauses in build-packages/stage-packages only respect the last one, causing wrong packages on multi-arch builds. Upstream bug filed in craft-grammar#89. | |
| qwen/qwen3.8-27b |
Impact:
65
Quick Win:
29
Staleness:
45
Complexity:
55
Confidence:
80
Support Request:
5
|
keep open | Advanced grammar bug: when a list has multiple `- to <arch>` clauses plus `else`, only the last `to` clause is respected, so e.g. armhf still pulls packages meant for other arches. Triaged, tracked upstream at craft-grammar#89, and added to a snapcraft pulse (June 2025) pending scoping; no fix yet. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
65
Complexity:
45
Confidence:
90
Support Request:
5
|
keep open | Bug where multiple `- to <arch>` clauses in build/stage-packages only respect the last one. Triaged, upstream craft-grammar issue created, currently awaiting scoping for next pulse. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
50
Confidence:
90
Support Request:
10
|
keep open | Bug in Snapcraft's advanced grammar where multiple - to <arch> clauses in package lists only respect the last one, causing incorrect package resolution on specific architectures. Currently triaged, with an upstream fix tracked and added to a development pulse for scoping. |
Update history
No update history recorded yet.
Related work
-
Blocked By:
canonical/craft-grammar#89
(confidence 95%)
A maintainer explicitly filed this upstream bug for the unexpected behavior of multiple `to` statements; that issue remains open.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6064 Extend advanced grammer to all keys of snapcraft | snapcraft | open | Advanced grammar remains limited to selected keys, limiting clean architecture-specific apps, part omission, and plugin parameters. The feature is untriaged; plugin-parameter support is tracked in craft-application #985. |