← Back to issue list

Please add support for advanced grammar in stage

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1948465
Type
issue
State
open
Author
~xnox
Labels
—
Created
Updated
Closed
—

Current evaluation

Architecture-conditional grammar for part stage/build commands remains unimplemented; processing covers six source/package keys, while try was removed in core22.

Suggested action: keep open

Reason: A maintainer explicitly said on-architecture support was feasible from core22 onward, although try semantics were unresolved. Current grammar processing omits override-build, and the documentation states that try was removed in core22, so the remaining request is valid but needs a current YAML example and clearer key/semantics scope.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 11 Complexity: 58 Confidence: 91 Actionability: 58

Issue body

Please add support for advanced grammar in stage I would love to have `try:` and `on $arch` support, currently have to do override-build instead.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 45
Quick Win: 11
Complexity: 58
Confidence: 91
Actionability: 58
keep open Architecture-conditional grammar for part stage/build commands remains unimplemented; processing covers six source/package keys, while try was removed in core22.
stealth/space-bunny-alpha
Impact: 38
Quick Win: 10
Complexity: 44
Confidence: 91
Actionability: 49
needs triage Architecture-conditional grammar for part stage/prime keys remains unsupported; try was removed in core22, and the request lacks a concrete reproducer or current maintainer decision.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 9
Complexity: 50
Confidence: 50
Actionability: 60
needs triage Feature request to add advanced grammar support (try, on $arch) to the stage key in snapcraft.yaml; untriaged, no maintainer response.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21
Staleness: 85
Complexity: 40
Confidence: 55
Support Request: 20
needs triage Feature request to allow advanced grammar (try:/on $arch) in the stage directive, avoiding override-build workarounds. Open since 2020 with zero comments or labels; grammar support has since expanded to all part keywords, so applicability needs verification.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 60
Confidence: 75
Support Request: 10
needs triage Feature request to add try: and on $arch conditional syntax to the stage directive. Unlabeled, zero maintainer comments, inactive for over four years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 60
Confidence: 85
Support Request: 10
needs triage Feature request to add try: and on arch grammar support to the stage command. Unlabelled, no maintainer comments, and inactive for over 4 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 30
Confidence: 75
Support Request: 10
close stale Request to add try: and on $arch syntax to the stage directive. Unlabelled, zero maintainer comments, inactive for over 4 years.

Update history

Date Change
created

Related work

  • Related To: snapcraft#4753 (confidence 90%)

    Added tests for advanced grammar in root keywords, but did not add override-build to the runtime grammar key list.

Related issues

Issue Project State Summary Similarity
#1948464 Please add support for advanced grammar in organize snapcraft (launchpad) open Advanced grammar in organize is requested, including try and on $arch; a maintainer acknowledged core22+ support in craft-parts, but no implementation is recorded.
76%
#1949980 Please add support for advanced grammar in build-base / base snapcraft (launchpad) closed Closed as not planned after a maintainer said build-base grammar was unsupportable because plugins and their languages change too much.
72%
#1637282 Allow for architecture-specific stage packages snapcraft (launchpad) closed Architecture-specific stage packages were implemented through grammar in snapcore/snapcraft#1059, later superseded by broader advanced-grammar support.
72%