With the advanced grammar, only the last `- to` clause is respected
Metadata
Current evaluation
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.
Suggested action: keep open
Reason: Maintainers have triaged this (Status: Triaged, Type: Bug labels), filed the upstream bug at canonical/craft-grammar#89, and in June 2025 sergiusens asked to get it fixed next pulse and mr-cal confirmed it was added to the pulse pending scoping. The upstream craft-grammar#89 is still open and the current craft-grammar code still processes `to` clauses one at a time with no fix commit found, so the issue remains valid and actively tracked.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
65
Quick Win:
29.25
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. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
15
Complexity:
40
Confidence:
90
Support Request:
0
|
keep open | Snapcraft grammar bug where only the last - to $ARCH: clause is respected, causing incorrect architecture-specific package installation. Triaged, |
Update history
No update history recorded yet.
Related work
-
Blocked By:
canonical/craft-grammar#89
(confidence 90%)
mr-cal explicitly filed this upstream bug for the same multiple-`to`-statement behavior; the fix belongs in the craft-grammar parser, so this snapcraft issue is blocked on that work.
Related issues
No related issues found above the similarity threshold.