From a6f8fe48fb877fd29bdf26df1216fadf7c464bc6 Mon Sep 17 00:00:00 2001 From: michaelguarino Date: Tue, 23 Nov 2021 16:05:26 -0500 Subject: [PATCH] fix locking for nonexistent repos --- pkg/pluralfile/lock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pluralfile/lock.go b/pkg/pluralfile/lock.go index 1ff859b2..72cf09da 100644 --- a/pkg/pluralfile/lock.go +++ b/pkg/pluralfile/lock.go @@ -40,7 +40,7 @@ func (plrl *Pluralfile) Lock(path string) (*Lockfile, error) { client := api.NewClient() applyLock, err := client.AcquireLock(plrl.Repo) if err != nil { - return nil, err + return lock(), nil } if applyLock.Lock == "" {