mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-02 17:37:43 +08:00

If the boot command hung or took a long time, it blocked any read operations (such as `buildx ls`). When the boot happens, we no longer need to hold the file lock so we can release it. Releasing multiple times is legal and causes whichever release that is second to be a no-op so the defer is kept to ensure the lock is released even when an error condition happens. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>