← Back to issue list

build provider runner detection

View original Launchpad issue

Metadata

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

Current evaluation

Build-provider injection was made conditional on Snapcraft running from a snap, avoiding injection from non-snap runners; fixed by merged PR snapcore/snapcraft#2174 (283ab0bb8).

Resolution: closed resolved

Reason: Merged PR snapcore/snapcraft#2174, commit 283ab0bb8, added runner detection so Snapcraft is injected only when the host is running from a snap.

Evaluated by: mr-cal-bot

No scores available.

Issue body

If the build provider is running from a non snap, the snapcraft snap needs to be installed instead of being injected.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Build-provider injection was made conditional on Snapcraft running from a snap, avoiding injection from non-snap runners; fixed by merged PR snapcore/snapcraft#2174 (283ab0bb8).
stealth/space-bunny-alpha — closed resolved Fixed by merged canonical/snapcraft PR #2174 (commit 283ab0bb8), which detects snap-based execution and installs the Snapcraft snap from the store for non-snap builds.
stealth/space-bunny-alpha — closed resolved Fixed by canonical/snapcraft#2174 (commit 283ab0bb8): non-snap build-provider runners now install Snapcraft from the store instead of receiving snap injection.
stealth/space-bunny-alpha — closed resolved Resolved by canonical/snapcraft#2174 (commit 283ab0bb8): non-snap build-provider runners now install Snapcraft from the store instead of receiving an injected snap.
stealth/space-bunny-alpha — closed resolved Fixed in merged PR #2174 (commit 283ab0bb8): inject Snapcraft and base snaps when running from a snap; otherwise install the Snapcraft snap from the store.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The issue required installing the snapcraft snap instead of injecting it when the build provider runs outside a snap. With zero comments, it was abandoned or superseded by later architectural changes.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned. Outlines a requirement to install the snapcraft snap instead of injecting it when the build provider runs outside a snap. No fix or follow-up was recorded.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The suggestion to install the snapcraft snap instead of injecting it for non-snap build providers was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned and closed without discussion or resolution. The issue noted that the snapcraft snap must be installed rather than injected when the build provider runs outside a snap environment.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2174 (confidence 99%)

    The merged commit implements conditional snap injection based on whether Snapcraft runs from a snap.

  • Related To: snapcraft (launchpad)#1779137 (confidence 95%)

    Companion Launchpad bug for injecting the host Snapcraft snap, also resolved by PR #2174.

Related issues

Issue Project State Summary Similarity
#1779137 build provider support to inject snaps on the host snapcraft (launchpad) closed Build providers gained host-snap injection when Snapcraft runs from a snap; fixed by merged snapcore/snapcraft#2174 (commit 283ab0bb8).
84%
#2174 build_providers: inject snaps when running from a snap snapcraft merged Merged PR #2174 (commit 283ab0bb8) to inject host Snapcraft and base snaps when running from the snapcraft snap, while non-snap runs install them from the store.
77%
#4084 providers: inject current snapcraft snap into instances snapcraft merged Merged PR #4084 as commit b852f9ac8, injecting the current Snapcraft snap into provider instances so parallel-installed instances can build core22 snaps.
71%
#2773 build providers: inject snapd snap for latest feature availability snapcraft merged Merged PR #2773 in commit 3740c61bc, replacing injected core snaps with the smaller snapd snap for current build features without requiring core18.
70%
#997 feat(Provider): inject the base snap craft-application merged Merged as commit 41cee32d, injecting the application's base snap into the provider so managed instances need not download it; fixes #952 (CRAFT-4889).
70%