From 253b6b122c4d339ba7a147e9139e55bbd43b8fae Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Wed, 31 Jan 2024 14:24:44 -0800 Subject: [PATCH] write OCIs to temp files initially so make does not assume success --- src/macros.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/macros.mk b/src/macros.mk index 39fc99c..cb01fd5 100644 --- a/src/macros.mk +++ b/src/macros.mk @@ -44,7 +44,8 @@ define build $(EXTRA_ARGS) \ $(NOCACHE_FLAG) \ src/$(CATEGORY)/$(NAME) \ - | gzip > $@; \ + | gzip > $@.tmp; \ + mv $@.tmp $@; \ gunzip -c $@ | docker load; \ ) $(eval TIMESTAMP := $(shell TZ=GMT date +"%Y-%m-%dT%H:%M:%SZ"))