From eea95cbb300895bacf6947eb5f96a456596382b9 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Thu, 9 May 2024 14:57:38 +0800 Subject: [PATCH] Update preBuildHook.s3 --- cabalHooks/preBuildHook.s3 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cabalHooks/preBuildHook.s3 b/cabalHooks/preBuildHook.s3 index 86330b61108..7b3da382c1c 100755 --- a/cabalHooks/preBuildHook.s3 +++ b/cabalHooks/preBuildHook.s3 @@ -12,6 +12,8 @@ aws s3 ls s3://"$CACHE_BUCKET"/devx-shell/"$CACHE_KEY" --endpoint-url "$AWS_ENDP if [ $? -eq 0 ]; then echo "S3 hit $1" aws s3 cp s3://"$CACHE_BUCKET"/devx-shell/"$CACHE_KEY" - --endpoint-url "$AWS_ENDPOINT" | tar -xz + # leave an empty $CACHE_KEY file for the postBuildHook to see and not re-upload. + touch "$CACHE_KEY" else echo "S3 miss $1" exit 1