canonical / craft-providers

Python interfaces for instantiating and executing builds for a variety of target environments.
https://canonical-craft-providers.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
6 stars 22 forks source link

Inject instanced host snaps to the provider #622

Open lengau opened 1 month ago

lengau commented 1 month ago

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#L317

and 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

mr-cal commented 1 month ago

Downstream issues:

syncronize-issues-to-jira[bot] commented 1 month ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3259.

This message was autogenerated

lengau commented 1 week ago

Downstrteam: https://github.com/canonical/craft-application/issues/411