From e7a50958d35405d6da96b7336ec851b61d78afc9 Mon Sep 17 00:00:00 2001 From: Obed0101 Date: Tue, 16 Jun 2026 16:23:39 -0500 Subject: [PATCH] fix: align package digests with runtime --- .mendcode/marketplace/index.json | 6 +++--- scripts/validate-packages.mjs | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.mendcode/marketplace/index.json b/.mendcode/marketplace/index.json index 9a0a36b..109c368 100644 --- a/.mendcode/marketplace/index.json +++ b/.mendcode/marketplace/index.json @@ -14,7 +14,7 @@ "channel": "official", "digest": { "algorithm": "sha256", - "value": "64ec63314c55e5824f02a7189aefaf3b29fea1d833a111b1b2594f24fba2014d" + "value": "9e207484a45820f3be12a24564823ffc8cdbadc9ab07c8b671fa760f116be685" }, "compatibility": { "mendcode": ">=0.1.14 <1.0.0", @@ -38,7 +38,7 @@ "channel": "official", "digest": { "algorithm": "sha256", - "value": "92ada46d162f8b7bbc616a8f61bd678a28a9e8fead22960e1dee5a1162544a6d" + "value": "71dbdfb6f0102c8cd98ce51870bee3c75065d0675b7e20e8276e5063048ce34d" }, "compatibility": { "mendcode": ">=0.1.14 <1.0.0", @@ -63,7 +63,7 @@ "channel": "official", "digest": { "algorithm": "sha256", - "value": "64515ceb1221a0f476ca25789297d140ba719d53829131a4b90cf8eecf9ea3c8" + "value": "8465df638b8b150e2998b18438010eb6c202f7f47d50194332ae6d597e154460" }, "compatibility": { "mendcode": ">=0.1.14 <1.0.0", diff --git a/scripts/validate-packages.mjs b/scripts/validate-packages.mjs index 34412c2..3fb89b7 100644 --- a/scripts/validate-packages.mjs +++ b/scripts/validate-packages.mjs @@ -55,7 +55,8 @@ function isApplyAllowed(rel) { } function digestPackage(packageDir) { - const files = walk(packageDir) + const sourceMend = path.join(packageDir, ".mendcode") + const files = (existsSync(sourceMend) ? walk(sourceMend) : walk(packageDir)) .map((file) => ({ file, rel: posix(path.relative(packageDir, file)) })) .filter((item) => isApplyAllowed(item.rel)) const hash = createHash("sha256")