Corrigir hash do pacote inventory-write de desenvolvimento

O pin do manifest.json tinha sido calculado sobre a cópia CRLF do Windows;
o git guarda LF, por isso qualquer clone limpo recusava o escritor de recepção.
Pin actualizado para os bytes canónicos e pacotes inventory-*/order-cancellation
marcados -text para preservar os bytes exactos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 23:01:36 +02:00
co-authored by Claude Opus 5.5
parent 725e80059d
commit d652b03467
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -3,6 +3,8 @@
# Preserve the exact bytes of pinned shared runtime artifacts and their hashes. # Preserve the exact bytes of pinned shared runtime artifacts and their hashes.
/packages/budget-control/** -text /packages/budget-control/** -text
/packages/payables/** -text /packages/payables/** -text
/packages/inventory-*/** -text
/packages/order-cancellation/** -text
/resources/data/geography/cartografia-moz.json -text whitespace=cr-at-eol /resources/data/geography/cartografia-moz.json -text whitespace=cr-at-eol
*.blade.php diff=html *.blade.php diff=html
+1 -1
View File
@@ -267,7 +267,7 @@ final class AgreementOrderLimits
} }
$root = base_path('packages/inventory-write/development'); $root = base_path('packages/inventory-write/development');
$bytes = file_get_contents($root.'/manifest.json'); $bytes = file_get_contents($root.'/manifest.json');
if ($bytes === false || ! hash_equals('90cf565537e7fd48eb54a87bcfd6d585cf53239f075764910047838b3b8b4c38', hash('sha256', $bytes))) { if ($bytes === false || ! hash_equals('c7ba216ff4f61f1435f7fc7ac423bf56dc729c228aa3acb165b960675cb96dbb', hash('sha256', $bytes))) {
throw new \LogicException('Artefacto aritmético incompatível.'); throw new \LogicException('Artefacto aritmético incompatível.');
} }
$manifest = json_decode($bytes, true, 512, JSON_THROW_ON_ERROR); $manifest = json_decode($bytes, true, 512, JSON_THROW_ON_ERROR);
+1 -1
View File
@@ -26,7 +26,7 @@ final class ReceiptStockMovement
abort_unless(($connection->getDriverName() === 'sqlite' && $connection->getDatabaseName() === ':memory:') abort_unless(($connection->getDriverName() === 'sqlite' && $connection->getDatabaseName() === ':memory:')
|| ($connection->getDriverName() === 'pgsql' && preg_match('/^compras_receipts_test_[a-f0-9]{12}$/D', $connection->getDatabaseName())), 503, 'Base QA isolada obrigatória.'); || ($connection->getDriverName() === 'pgsql' && preg_match('/^compras_receipts_test_[a-f0-9]{12}$/D', $connection->getDatabaseName())), 503, 'Base QA isolada obrigatória.');
$root = base_path('packages/inventory-write/development'); $root = base_path('packages/inventory-write/development');
$pin = '90cf565537e7fd48eb54a87bcfd6d585cf53239f075764910047838b3b8b4c38'; $pin = 'c7ba216ff4f61f1435f7fc7ac423bf56dc729c228aa3acb165b960675cb96dbb';
$files[] = 'src/QuantityConversion.php'; $files[] = 'src/QuantityConversion.php';
} else { } else {
$conversion->assertLegacyCompatible(); $conversion->assertLegacyCompatible();