Skip to content

Commit bae69df

Browse files
authored
build: Fix site/bin tar/zstd build step in rare error cases (#5495)
1 parent ac27cf8 commit bae69df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CO
121121
tar cf "../../../build/$(@F)" coder-*
122122
popd
123123

124+
# delete the uncompressed binaries from the embedded dir
125+
rm -f site/out/bin/coder-*
126+
124127
site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar.zst
125128
cp "$<" "$@"
126129

@@ -132,9 +135,6 @@ build/coder-slim_$(VERSION).tar.zst: build/coder-slim_$(VERSION).tar
132135
-o "build/coder-slim_$(VERSION).tar.zst" \
133136
"build/coder-slim_$(VERSION).tar"
134137

135-
# delete the uncompressed binaries from the embedded dir
136-
rm site/out/bin/coder-*
137-
138138
# Redirect from version-less targets to the versioned ones. There is a similar
139139
# target for slim binaries below.
140140
#

0 commit comments

Comments
 (0)