From 7467471dcf5e64158fb5aa6d83ac52694ac875e0 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Tue, 6 Jun 2023 15:30:07 +1000 Subject: [PATCH] WIP --- bootstrap/shell/shell.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap/shell/shell.go b/bootstrap/shell/shell.go index 6d9eb1e07d..c9d28f710b 100644 --- a/bootstrap/shell/shell.go +++ b/bootstrap/shell/shell.go @@ -224,6 +224,9 @@ func (s *Shell) flock(ctx context.Context, path string, timeout time.Duration) ( // Create a cross-process file-based lock based on pid files func (s *Shell) LockFile(ctx context.Context, path string, timeout time.Duration) (LockFile, error) { + if experients.Enabled(experiments.AgentAPI) { + // TODO: use lock package + } return s.flock(ctx, path, timeout) }