diff --git a/.gitattributes b/.gitattributes index 4638d9f..a8f47d0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,6 +3,8 @@ # Preserve the exact bytes of pinned shared runtime artifacts and their hashes. /packages/budget-control/** -text /packages/payables/** -text +/packages/inventory-*/** -text +/packages/order-cancellation/** -text /resources/data/geography/cartografia-moz.json -text whitespace=cr-at-eol *.blade.php diff=html diff --git a/app/Services/AgreementOrderLimits.php b/app/Services/AgreementOrderLimits.php index 8f91a8a..f07207d 100644 --- a/app/Services/AgreementOrderLimits.php +++ b/app/Services/AgreementOrderLimits.php @@ -267,7 +267,7 @@ final class AgreementOrderLimits } $root = base_path('packages/inventory-write/development'); $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.'); } $manifest = json_decode($bytes, true, 512, JSON_THROW_ON_ERROR); diff --git a/app/Services/ReceiptStockMovement.php b/app/Services/ReceiptStockMovement.php index 5581973..929a84b 100644 --- a/app/Services/ReceiptStockMovement.php +++ b/app/Services/ReceiptStockMovement.php @@ -26,7 +26,7 @@ final class ReceiptStockMovement 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.'); $root = base_path('packages/inventory-write/development'); - $pin = '90cf565537e7fd48eb54a87bcfd6d585cf53239f075764910047838b3b8b4c38'; + $pin = 'c7ba216ff4f61f1435f7fc7ac423bf56dc729c228aa3acb165b960675cb96dbb'; $files[] = 'src/QuantityConversion.php'; } else { $conversion->assertLegacyCompatible();