From 70254d481696f621461bdc3a26f85d7b40baa887 Mon Sep 17 00:00:00 2001 From: devthejo Date: Thu, 27 Jul 2023 16:30:01 +0200 Subject: [PATCH] fix: degit renew cache when changed --- packages/common/utils/degit-improved.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/common/utils/degit-improved.js b/packages/common/utils/degit-improved.js index c94c050b04..3fa0fc80fc 100644 --- a/packages/common/utils/degit-improved.js +++ b/packages/common/utils/degit-improved.js @@ -32,8 +32,9 @@ module.exports = async ( logger.debug(`🗂️ degit "${uri}"`) if (cacheCheck) { const tagHasChanged = await degitTagHasChanged(uri) - disableCache = tagHasChanged if (tagHasChanged) { + disableCache = true + force = true logger.debug({ degit: uri }, `♻️ tag has changed, renew cache`) } }