Add a way to support a snap instance key from the host when injecting it into the client, without instancing the snap inside the client or requiring that snapd in there even have parallel installs enabled.
Snapd has parallel installs as an experimental option. We need to be able to get an instanced version of a host snap and install it without being instanced.
What needs to get done
Add a way to support a snap instance key from the host when injecting it into the client, without instancing the snap inside the client or requiring that snapd in there even have parallel installs enabled.
Essentially, this needs an optional
instance_key
in https://github.com/canonical/craft-providers/blob/5547eedd0aed552d2c91d4808d3a236d63f72e38/craft_providers/actions/snap_installer.py#L317and then passthroughs in related places.
Why it needs to get done
Snapd has parallel installs as an experimental option. We need to be able to get an instanced version of a host snap and install it without being instanced.
See also: https://github.com/canonical/craft-application/issues/411