From badc918e60394c07901ae32a0ef648e9d8090b17 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 20 Oct 2025 16:52:43 +0200 Subject: [PATCH] Revert "chore(cleanup): lxc-helpers does not need a global lock (#1047)" This reverts commit 996ac343ee155a4b47d89a6bf1854feb1c04fdb2. --- act/runner/run_context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/act/runner/run_context.go b/act/runner/run_context.go index 9e4c2981..dd72ff09 100644 --- a/act/runner/run_context.go +++ b/act/runner/run_context.go @@ -193,6 +193,8 @@ var lxcHelpers string var startTemplate = template.Must(template.New("start").Parse(`#!/bin/bash -e +exec 5<>/tmp/forgejo-runner-lxc.lock ; flock --timeout 21600 5 + LXC_CONTAINER_CONFIG="{{.Config}}" LXC_CONTAINER_RELEASE="{{.Release}}"