From b378637593078e366a10f8278bc5b3429ce40a48 Mon Sep 17 00:00:00 2001 From: pbio <10051819+paulbalaji@users.noreply.github.com> Date: Wed, 25 Feb 2026 12:09:42 +0000 Subject: [PATCH] Make Tron build outputs deterministic for turbo cache --- solidity/build-tron.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solidity/build-tron.sh b/solidity/build-tron.sh index 4470bc8ffc2..2be58d937ca 100755 --- a/solidity/build-tron.sh +++ b/solidity/build-tron.sh @@ -2,6 +2,10 @@ set -e cd "$(dirname "$0")" +# Ensure deterministic outputs for turbo cache: hardhat/typechain can emit +# partial trees when incremental cache is reused against cleaned output dirs. +rm -rf ./cache-tron ../typescript/tron-sdk/src/abi ../typescript/tron-sdk/src/typechain + # Ensure soldeer dependencies are installed before patching files. # The regular @hyperlane-xyz/core build also runs soldeer install, and if it # runs concurrently with our file patches below, soldeer's git checkout fails