← Back to issue list

Build environment with lxd (--use-lxd)

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1805221
Type
issue
State
closed
Author
~sergiusens
Labels
19.04 19.04-core
Created
Updated
Closed

Current evaluation

LXD build-provider support was implemented and merged in snapcraft PR #2509 (commit 067024732, "build providers: initial support for LXD"), making `snapcraft --use-lxd` run lifecycle steps and clean in an LXD container. Bug closed.

Resolution: closed resolved

Reason: Merged PR #2509 (commit 067024732) added initial LXD build-provider support, delivering the requested `--use-lxd` build environment; the feature shipped on the beta/lxd channel and the maintainer closed the bug after the merge.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Akin to --use-multipass but using LXD instead of multipass.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved LXD build-provider support was implemented and merged in snapcraft PR #2509 (commit 067024732, "build providers: initial support for LXD"), making `snapcraft --use-lxd` run lifecycle steps and clean in an LXD container. Bug closed.
stealth/space-bunny-alpha — closed resolved LXD build-provider support was merged via snapcraft#2509 (067024732), enabling --use-lxd lifecycle builds and cleaning.
stealth/space-bunny-alpha — closed resolved LXD build-provider support was merged in canonical/snapcraft#2509 (commit 067024732), enabling --use-lxd for lifecycle builds and project cleanup.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The feature request to add a --use-lxd flag for build environments was abandoned or superseded by later project developments.
qwen/qwen3.6-35b-a3b — — The proposal to implement a --use-lxd flag for build environments was closed without discussion or implementation. The feature remains unimplemented and the request was abandoned.
qwen/qwen3.6-35b-a3b — — Feature request to add LXD support as a Multipass alternative for build environments was closed without implementation. Zero comments and extended inactivity indicate the request was abandoned or superseded.
qwen3.6-35b-a3b-mtp-q6 — — Closed as abandoned due to inactivity. The feature request to add a --use-lxd build environment option, mirroring --use-multipass, received no comments or implementation and was superseded by evolving container workflows.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#2509 (confidence 97%)

    Merged PR 'build providers: initial support for LXD' (067024732), cited by the maintainer in the tracking comment.

  • Related To: canonical/snapcraft#2621 (confidence 60%)

    Follow-up PR adding LXD snap injection for build providers.

Related issues

Issue Project State Summary Similarity
#2509 build providers: initial support for LXD snapcraft merged Merged PR #2509 (commit 067024732) adding initial LXD build-provider support: `snapcraft --use-lxd` runs all lifecycle steps and clean inside an LXD container. Released via beta/lxd channel; LP bug #1805221 closed.
87%
#3725 tests: use lxd in clean provider test snapcraft merged Merged PR #3725 (commit 61aaff6fc) into snapcraft/7.0, enabling LXD in provider-cleaning unit tests so they match destructive-mode test runs. Approved by one maintainer reviewer.
73%
#1364 lxd: Inject snapcraft and core snaps into the container snapcraft merged Merged PR #1364 as 99f5598ac, injecting the host's Snapcraft and core snaps into LXD containers so builds no longer use a mismatched Xenial archive version.
73%
#1666735 snapcraft cleanbuild does not work with lxd installed via snap snapcraft (launchpad) closed Fixed by merged canonical/snapcraft#1199 (commit 417989880), making cleanbuild LXD detection packaging-independent instead of relying on apt package metadata.
71%
#1480144 cleanbuild (through lxd) snapcraft (launchpad) closed Wishlist request for cowbuilder/pbuilder-style clean cross-arch snap builds. Closed by moving it to GitHub ubuntu-core/snapcraft#5, where clean-room building was later delivered as the LXD build provider (--use-lxd, snapcraft#2509, commit 067024732).
70%
#52 lxd: add snapshot support (CRAFT-144) craft-providers merged LXD snapshot support was merged in canonical/craft-providers#52 via commit 2ddab88 (implementation 5d49777), adding CRAFT-144 functionality.
70%
#1752498 cleanbuild fails with lxd snap snapcraft (launchpad) closed Closed as obsolete: the cleanbuild command was removed; Snapcraft builds now perform clean builds by default.
70%