File 0331-gh-Fix-cache-invalidation-when-pt-is-changed.patch of Package erlang
From 6f7674b7e49c8da3966acb9dd6be4b280490dafc Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Fri, 5 Jan 2024 10:18:10 +0100
Subject: [PATCH 1/2] gh: Fix cache invalidation when pt is changed
---
.github/scripts/restore-from-prebuilt.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.github/scripts/restore-from-prebuilt.sh b/.github/scripts/restore-from-prebuilt.sh
index 4d65ecc8f1..d6a96f9c68 100755
--- a/.github/scripts/restore-from-prebuilt.sh
+++ b/.github/scripts/restore-from-prebuilt.sh
@@ -147,6 +147,11 @@ if [ -n "${ARCHIVE}" ]; then
fi
done
+ ## The cache was deleted, so break and don't use it
+ if [ ! -d "${CACHE_DIR}" ]; then
+ break;
+ fi
+
echo "::group::{Run ${i}: yecc}"
### if yecc has changed, need to recompile all .yrl files
if grep "yecc.erl$" "${CHANGES}"; then
--
2.35.3