← Back to issue list

lxd: unset SNAP to work-around LXD deb thinking it's a snap

View original Github issue

Metadata

Project
snapcraft
Number
#1912
Type
pull request
State
closed
Author
kalikiana
Labels
—
Created
Updated
Closed

Current evaluation

The SNAP-unset workaround for LP #1746612 was rejected and PR #1912 was closed unmerged; no Snapcraft fix landed.

Resolution: closed stale

Reason: Maintainer @sergiusens explicitly rejected the workaround and requested a common environment-handling design first. Despite later requests to land it, the PR received no approval and was closed without a merge or resolving commit.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? ----- Work-around for [LP: #1746612](https://bugs.launchpad.net/snapcraft/+bug/1746612) Manual test steps: 1. Have LXD v2.21 deb installeed 2. `$ snapcraft cleanbuild` 3. Observe that the build succeeds

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale The SNAP-unset workaround for LP #1746612 was rejected and PR #1912 was closed unmerged; no Snapcraft fix landed.
stealth/space-bunny-alpha — closed stale PR #1912 was closed unmerged; maintainers rejected the SNAP-unset workaround in favor of fixing LXD, and no Snapcraft change landed.
stealth/space-bunny-alpha — closed stale PR #1912 proposed unsetting SNAP to bypass LXD’s Debian/snap detection, but was rejected and closed unmerged; no Snapcraft fix landed.
qwen/qwen3.6-35b-a3b — — Rejected and closed. Maintainers declined the workaround, preferring a proper fix in LXD or a redesigned environment handler. The pull request was abandoned without merging despite ongoing user breakage.
qwen3.6-35b-a3b-mtp-q6 — — Rejected and closed without merging. Maintainer opposed the workaround, preferring an upstream LXD fix or a redesigned handler. Despite contributor pushback regarding prolonged user impact, the PR was abandoned and never merged.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1577 lxd: don't inject local snaps on a different arch snapcraft merged Merged in snapcraft#1577 via commit 5cef61310, preventing incompatible local snaps from being injected into cross-architecture LXD builds and using store snaps instead.
76%
#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.
75%
#343 lxd should be a suggestion, not a direct dep snapcraft merged Merged in snapcraft PR #343 as 7147a43ba, changing LXD from a direct dependency to a suggestion and resolving LP #1550381.
74%
#1746612 Snapcraft cleanbuild doesn't work if you're not using the LXD snap snapcraft (launchpad) closed Closed after the missing hostfs behavior was fixed upstream in lxc/lxd#4183. Snapcraft PR #1912 offered a workaround but was not merged.
73%
#1839399 snapcraft not pulling snap from lxd container snapcraft (launchpad) open Snapcraft 3.7.1 reported a successful --use-lxd build but left the generated snap absent on the host; a maintainer identified possible CWD handling, and the case remains unresolved.
73%
#1865 lxd: always (re-)injects snaps snapcraft merged Merged PR #1865 as e99354492, fixing LP #1741752 by ensuring LXD re-injects required snaps when needed.
72%
#1639641 Don't assume lxd from dpkg snapcraft (launchpad) closed Linked PR canonical/snapcraft#904 was closed unmerged as stale in Feb 2017; dpkg-only LXD detection was later fixed by merged #1199 (417989880).
72%
#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.
72%
#4442 running snapcraft for the first time on debian12 snapcraft closed Debian 12 LXD setup failure was self-resolved: reporter had missed relogging after `usermod -a -G lxd` and re-initialising LXD/snapcraft. Issue closed in favour of the reporter's follow-up comment; no snapcraft code change was made.
71%
#1814928 Can't build a Snap program using lxd snapcraft (launchpad) closed No fix was recorded; a maintainer suggested retrying with --destructive-mode, then Janitor closed the report as expired after 60 days without activity.
71%