From 0c57b4e751dfead45f0354ac36dce2fe0569947e Mon Sep 17 00:00:00 2001 From: Vehbi Sinan Tunalioglu Date: Thu, 13 Feb 2025 10:46:50 +0800 Subject: [PATCH 1/2] chore(build): fail on errors during script execution --- build-static.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-static.sh b/build-static.sh index cfdf019..e62bf2c 100644 --- a/build-static.sh +++ b/build-static.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +## Fail on errors including pipe failures: +set -eo pipefail + ## NOTE: Things would be much easier if we could use Nix, but we can ## not (or I find it rather tedious). So, we have to use Docker. ## From 074ff6f18a5424490c964c8ceee51a70e25b213b Mon Sep 17 00:00:00 2001 From: Vehbi Sinan Tunalioglu Date: Thu, 13 Feb 2025 10:47:07 +0800 Subject: [PATCH 2/2] fix(build): fix GHC version of static builder --- build-static.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-static.sh b/build-static.sh index e62bf2c..21fcad6 100644 --- a/build-static.sh +++ b/build-static.sh @@ -12,7 +12,7 @@ set -eo pipefail ## `--enable-executable-stripping`, hence the `strip` command usage. ## GHC version: -GHC_VERSION="9.6.5" +GHC_VERSION="9.6.6" ## Docker image: DOCKER_IMAGE="quay.io/benz0li/ghc-musl:${GHC_VERSION}"