I doubt this is not only deprecated, but also obsoleted.
For the snap building in non-snapcraft cleanbuild
LXD containers, set SNAPCRAFT_BUILD_ENVIRONMENT=host
seems to solve the issue, refer How to create a LXD container for snap development for a guide to create one.