From c6f0393c6581eece2fc717a2dbcc6a459268f527 Mon Sep 17 00:00:00 2001 From: hzhang Date: Mon, 13 Apr 2026 16:00:40 +0100 Subject: [PATCH] fix: lock-mgr lock identifier if file does not exist --- lock-mgr/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lock-mgr/main.go b/lock-mgr/main.go index 018abe8..f18acd4 100644 --- a/lock-mgr/main.go +++ b/lock-mgr/main.go @@ -340,6 +340,9 @@ func run() error { if err != nil { return fmt.Errorf("cannot resolve file path: %w", err) } + if _, statErr := os.Stat(filePath); os.IsNotExist(statErr) { + filePath = fileArg + } // Ensure lock file exists if _, statErr := os.Stat(mgrPath); os.IsNotExist(statErr) {