Skip to content

Commit 0260adb

Browse files
fix: do not delete test data directory (ethereum-optimism#11869)
Our "just clean" command was deleting the entirety of .testdata which gets in several scripts now. We don't actually want to delete the entirety of .testdata, we want to delete anything inside of it (except for the gitkeep file).
1 parent 232c54d commit 0260adb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/contracts-bedrock/justfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ validate-spacers-no-build:
111111

112112
validate-spacers: build validate-spacers-no-build
113113

114+
# Cleans build artifacts and deployments.
115+
# Removes everything inside of .testdata (except the .gitkeep file).
114116
clean:
115-
rm -rf ./artifacts ./forge-artifacts ./cache ./scripts/go-ffi/go-ffi ./.testdata ./deployments/hardhat/*
117+
rm -rf ./artifacts ./forge-artifacts ./cache ./scripts/go-ffi/go-ffi ./deployments/hardhat/*
118+
find ./.testdata -mindepth 1 -not -name '.gitkeep' -delete
116119

117120
pre-pr-no-build: gas-snapshot-no-build snapshots-no-build semver-lock autogen-invariant-docs lint
118121

0 commit comments

Comments
 (0)