snapcraft cleanbuild does not work with lxd installed via snap

Bug #1666735 reported by Thomi Richards
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Sergio Schvezov

Bug Description

The 'snapcraft cleanbuild' command checks to see if lxd is installed. Sadly it does this by checking the apt package cache, which means that users using lxd from the snap package can't use the cleanbuild command, despite the fact that there's no technical reason (as far as I can see anyway) why this wouldn't work.

Can we check the output of 'snap list' to see if the lxd snap is present? Alternatively, perhaps just ensure that a safe lxd command exits 0 (perhaps 'lxc list').

Changed in snapcraft:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Sergio Schvezov (sergiusens)
milestone: none → 2.28
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.