`snapcraft clean <part> --use-lxd` shouldn't wait for network

Bug #1958930 reported by Omer Akram
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Undecided
Unassigned

Bug Description

When cleaning a specific part, please make it so, so that snapd doesn't wait for the availability of internet, it's redundant to wait for network connectivity for the lxd container, while the sole purpose is to just delete a few directories.

This will help developers who are debugging their code and need to clean specific part frequently. All saved seconds are helpful.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

https://github.com/snapcore/snapcraft/blob/main/snapcraft/internal/build_providers/_lxd/_lxd.py#L406 is where this is at. I believe we have this to avoid slow network bringups.

--offline could be passed together with clean.
We need to analyze and see if we can do without waiting for network all-together.

Changed in snapcraft:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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