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` +