When I run
snapcraft --use-lxd, it works perfect. But if I want to clean a part (or even the entire container), I get an error:
snapcraft --use-lxd clean part-name Usage: snapcraft clean [OPTIONS] <part>... Error: --use-lxd cannot be used with build provider 'multipass'
It’s not a big deal, because I found a work around:
SNAPCRAFT_BUILD_ENVIRONMENT=lxd snapcraft --use-lxd clean part-name
This feels like a bug. But maybe I’m doing something wrong here?