← Back to issue list

use multipass if set in the environment

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1792614
Type
issue
State
closed
Author
~sergiusens
Labels
18.10-build-vm
Created
Updated
Closed

Current evaluation

Closed as fixed: PR snapcore/snapcraft#2275 (commit 04f8896d9) made SNAPCRAFT_BUILD_ENVIRONMENT/multipass take precedence over the base-derived provider choice.

Resolution: closed resolved

Reason: Maintainer sergiusens closed the bug after referencing GitHub PR snapcore/snapcraft#2275, merged as commit 04f8896d9. The behaviour is still present in snapcraft/providers.py, where get_provider() checks the SNAPCRAFT_BUILD_ENVIRONMENT environment variable (step 2) before falling back to snap configuration and the platform default.

Evaluated by: mr-cal-bot

No scores available.

Issue body

if set in the environment, just use it regardless of base setting.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Closed as fixed: PR snapcore/snapcraft#2275 (commit 04f8896d9) made SNAPCRAFT_BUILD_ENVIRONMENT/multipass take precedence over the base-derived provider choice.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2275 in commit 04f8896d9, which makes an exported Multipass build provider override the base-derived setting.
stealth/space-bunny-alpha — closed resolved Fixed environment-over-base provider selection in PR #2275 (commit 04f8896d9), so an exported Multipass setting takes precedence over the base.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to prioritize the Multipass environment variable over base settings was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without comments or resolution details. The request to prioritize environment-set multipass over base settings was abandoned due to inactivity.
qwen/qwen3.6-35b-a3b — — Closed without comments or explicit resolution. The multipass environment override was not merged, rejected, or superseded.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The request to prioritize Multipass when the environment variable is set was abandoned, with no code changes or discussions recorded.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2275 (confidence 95%)

    PR cited in the only comment on the issue; its merged commit 04f8896d9 introduced the env-var-over-base provider precedence now visible in snapcraft/providers.py.

Related issues

Issue Project State Summary Similarity
#1791821 multipass should use snapcraft defined environments snapcraft (launchpad) closed Multipass now launches Snapcraft-defined build images; fixed by canonical/snapcraft#2258 (commit 5ffefbf96), including a Darwin launch workaround.
77%
#2293 build providers: use the new snapcraft: remote for multipass snapcraft merged Merged PR #2293 as commit 66060e839, switching Multipass builds to the snapcraft: remote and delegating unsupported-base errors to Multipass.
76%
#2869 build providers: use multipass from stable snapcraft merged Merged in canonical/snapcraft#2869 (commit eb9bd8fbf), switching build providers to install Multipass 1.0 from the stable channel.
75%
#1792254 multipass to drive the image to use for building snapcraft (launchpad) closed Request to let Multipass pick the build image was implemented by snapcore/snapcraft PR #2269 "Provider decides on the image" (commit cef6cf19d), making Snapcraft's requested image optional. Maintainer sergiusens linked that PR and closed the bug.
74%
#1793512 mutlipass by default on darwin snapcraft (launchpad) closed Multipass became the default build provider on Darwin via merged PR snapcore/snapcraft#2288 (commit 376adda59).
74%
#2008003 Multipass build provider does not support resource settings core core22 snaps snapcraft (launchpad) open Multipass builds of core22+ snaps ignore SNAPCRAFT_BUILD_ENVIRONMENT_CPU/MEMORY; provider hardcodes 2 CPUs/2GB RAM. Maintainer confirmed unsupported; fix tracked upstream in craft-providers#531.
74%
#2288 build providers: use multipass automatically when on darwin snapcraft merged Merged #2288 as commit 376adda59, making Snapcraft select Multipass automatically on Darwin/macOS and resolving LP #1793512.
74%
#1799780 root user handling for multipass is confusing snapcraft (launchpad) closed Fixed by merged snapcore/snapcraft#2385 (commit 404255671), consolidating CLI re-execution and delegating Multipass root handling to build-provider APIs.
74%
#2694 multipass: fix setup exception when multipass is not found in PATH snapcraft merged Merged into master as c3e544dc9, handling missing Multipass in PATH with a clear SnapcraftEnvironmentError.
73%
#1996511 snapcraft try with multipass provider crashes snapcraft (launchpad) closed Snapcraft try with Multipass and core22 was fixed by snapcore/snapcraft#3981 (commit 2691262b8) and shipped in Snapcraft 7.3.
73%