← Back to issue list

It is not possible to use global build-snaps

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1718823
Type
issue
State
closed
Author
~elopio
Labels
—
Created
Updated
Closed

Current evaluation

Global build-snaps support was implemented in canonical/snapcraft#3790 and merged as commit 6688b58bc, allowing build-snaps at the root level for all parts.

Resolution: closed resolved

Reason: The resolving change is canonical/snapcraft#3790, merged in commit 6688b58bc. It added root-level build-snaps handling that applies declared build snaps across all parts, matching the requested behavior.

Evaluated by: mr-cal-bot

No scores available.

Issue body

We can define build-packages globally in the snapcraft.yaml. This means that the build-packages are not for a part in particular, but for all of them. With build-snaps we can't define them globally. We can only define them inside a part. To reproduce, try to build the following yaml: name: build-package version: '0.1' summary: install a build-package description: Install a build-package. build-snaps: ['hello'] parts: hello: plugin: nil

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Global build-snaps support was implemented in canonical/snapcraft#3790 and merged as commit 6688b58bc, allowing build-snaps at the root level for all parts.
stealth/space-bunny-alpha — closed resolved Root-level build-snaps support was implemented by PR #3790 (commit 6688b58bc), applying declared build snaps across all parts.
stealth/space-bunny-alpha — closed resolved Global root-level build-snaps were added alongside build-packages in snapcraft PR #3790 (commit 6688b58bc).
qwen/qwen3.6-35b-a3b — — Closed without resolution. The feature request to enable global build-snaps in snapcraft.yaml was abandoned due to lack of discussion or implementation.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 60
Confidence: 95
Support Request: 10
close stale Snapcraft lacks support for globally defining build-snaps in snapcraft.yaml, unlike build-packages. The issue remains open with no maintainer response or labels after nearly 9 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 75
Support Request: 10
close stale Feature request to allow global build-snaps in snapcraft.yaml, mirroring global build-packages. Open for nearly nine years with zero maintainer interaction or comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 90
Support Request: 10
close stale Feature request to allow global build-snaps in snapcraft.yaml. Open for ~8.8 years with zero maintainer engagement or comments. Likely already supported in modern snapcraft versions.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#3790 (confidence 100%)

    PR #3790 added support for root-level build-snaps and was recorded in commit 6688b58bc.

Related issues

Issue Project State Summary Similarity
#1340 state: save all the build packages as global snapcraft merged Merged in canonical/snapcraft#1340 (51401fc07), recording build packages globally at install time instead of capturing their versions per part.
72%
#1442 `build-snaps` snapcraft closed Implemented build-snaps in merged PR canonical/snapcraft#1518 (commit 69dceb848), adding project- and part-level keys with advanced grammar support.
70%