From d652b03467b4dcbdd97e80d61755be111b8c452f Mon Sep 17 00:00:00 2001 From: Osmane Nala Date: Mon, 30 Nov 2026 23:01:36 +0200 Subject: [PATCH] Corrigir hash do pacote inventory-write de desenvolvimento MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .gitattributes | 2 ++ app/Services/AgreementOrderLimits.php | 2 +- app/Services/ReceiptStockMovement.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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();