diff --git a/tools/depgraph.js b/tools/depgraph.js index 2862f44..3fdee15 100644 --- a/tools/depgraph.js +++ b/tools/depgraph.js @@ -244,7 +244,10 @@ async function getLanguageTestArtifact({ lang }) { const hash = (await fs.readFile(hashPath, "utf-8")).trim(); const S3_BUCKET = getS3Bucket(); await runCommand( - `aws s3 cp ${hashPath} s3://${S3_BUCKET}/test-hashes/lang/${lang}/${hash}` + `aws s3 rm --recursive s3://${S3_BUCKET}/test-hashes/lang/${lang}`, + ); + await runCommand( + `aws s3 cp ${hashPath} s3://${S3_BUCKET}/test-hashes/lang/${lang}/${hash}`, ); }, };