From 21664c5c5803a64d4b8546546b17bd62b6f690bd Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 16 Sep 2022 18:36:11 +0300 Subject: [PATCH] fix: Revert change from zstd level 22 to level 6 compression (#4086) --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 84165051e0..4e0c7bda7b 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,10 @@ GOARCH := $(shell go env GOARCH) GOOS_BIN_EXT := $(if $(filter windows, $(GOOS)),.exe,) VERSION := $(shell ./scripts/version.sh) +# Use the highest ZSTD compression level for the release binaries. For +# development, a sane lower value would be `make build ZSTDFLAGS=-6`. +ZSTDFLAGS := -22 --ultra + # All ${OS}_${ARCH} combos we build for. Windows binaries have the .exe suffix. OS_ARCHES := \ linux_amd64 linux_arm64 linux_armv7 \ @@ -102,9 +106,8 @@ build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CO popd build/coder-slim_$(VERSION).tar.zst site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar - zstd -6 \ + zstd $(ZSTDFLAGS) \ --force \ - --ultra \ --long \ --no-progress \ -o "build/coder-slim_$(VERSION).tar.zst" \