Skip to content

Commit bec0985

Browse files
fix #869 by removing lock file after unlocking (#947)
1 parent 2241adf commit bec0985

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/commands/executor.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,7 @@ func (e *Executor) releaseFileLock() {
223223
if err := e.flock.Unlock(); err != nil {
224224
e.debugf("Failed to unlock on file: %s", err)
225225
}
226+
if err := os.Remove(e.flock.Path()); err != nil {
227+
e.debugf("Failed to remove lock file: %s", err)
228+
}
226229
}

0 commit comments

Comments
 (0)