From bae69df8f9d74313707b7a83c656361abf25efda Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 21 Dec 2022 22:59:49 +0200 Subject: [PATCH] build: Fix site/bin tar/zstd build step in rare error cases (#5495) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b847fb05e6..69ad7e23dd 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,9 @@ build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CO tar cf "../../../build/$(@F)" coder-* popd + # delete the uncompressed binaries from the embedded dir + rm -f site/out/bin/coder-* + site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar.zst cp "$<" "$@" @@ -132,9 +135,6 @@ build/coder-slim_$(VERSION).tar.zst: build/coder-slim_$(VERSION).tar -o "build/coder-slim_$(VERSION).tar.zst" \ "build/coder-slim_$(VERSION).tar" - # delete the uncompressed binaries from the embedded dir - rm site/out/bin/coder-* - # Redirect from version-less targets to the versioned ones. There is a similar # target for slim binaries below. #