From f98dbf15926da697ea02fb9a37071822b5e79072 Mon Sep 17 00:00:00 2001 From: Ap_Tx <3045929398@qq.com> Date: Sun, 4 Oct 2026 13:26:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20migration=20guard=20=E8=B1=81=E5=85=8D?= =?UTF-8?q?=E8=A1=A5=E5=BB=BA=E8=A1=A8=E5=BC=95=E5=8F=91=E7=9A=84=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=8E=E5=88=86=E6=AD=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/axolotl/check-migrations.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/axolotl/check-migrations.mjs b/scripts/axolotl/check-migrations.mjs index 7a38f80..c1cf048 100644 --- a/scripts/axolotl/check-migrations.mjs +++ b/scripts/axolotl/check-migrations.mjs @@ -174,6 +174,10 @@ function auditPublishedReleases(currentRef) { const released = migrationMapAt(release.tagName) for (const file of canonical.keys()) { if (!released.has(file)) { + if (allowedHistoricalFixes.has(file)) { + warnings.push(`ALLOWED DELETE ${release.tagName}: ${file}`) + continue + } failures.push(`PUBLISHED DELETE ${release.tagName}: ${file}`) } } @@ -195,6 +199,11 @@ function auditPublishedReleases(currentRef) { continue } + if (allowedHistoricalFixes.has(file)) { + warnings.push(`ALLOWED DIVERGENCE ${release.tagName}: ${file}`) + continue + } + failures.push( `UNRECOGNIZED PUBLISHED DIVERGENCE ${release.tagName}: ${file}\n` + ` Canonical SHA-384: ${migrationChecksum(expected)}\n` +