From 8c7a9aa20596f3cdd96b2c9bdfebc2f69cbea914 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 14 Aug 2022 14:06:48 +0200 Subject: [PATCH] fixed build errors out if builddir is not present --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index f21a4d6..93ca5c4 100644 --- a/utils.go +++ b/utils.go @@ -177,7 +177,7 @@ func cleanBuildDir(dir string, chrootDir string) error { return err } _ = os.Remove(chrootDir + ".lock") - } else { + } else if !os.IsNotExist(err) { return fmt.Errorf("chroot dir was not an directory or failed to stat: %w", err) } }