diff --git a/.changeset/sweet-items-film.md b/.changeset/sweet-items-film.md new file mode 100644 index 00000000..721da8bc --- /dev/null +++ b/.changeset/sweet-items-film.md @@ -0,0 +1,5 @@ +--- +"@cartesi/devnet": patch +--- + +Download artifacts dependencies sequentially to avoid race-condition errors when creating directories and files, which can result in EEXIST followed by ENOENT errors. Also, explicitly configure the task runner to exit on error, so it doesn't publish a package with missing required information. diff --git a/packages/devnet/build.ts b/packages/devnet/build.ts index 2289f3bb..0b5da822 100644 --- a/packages/devnet/build.ts +++ b/packages/devnet/build.ts @@ -189,7 +189,7 @@ const build = async () => { { title: "Download dependencies", task: async (_, task) => - task.newListr(dependencies, { concurrent: true }), + task.newListr(dependencies, { concurrent: false }), }, { title: "Starting anvil...", @@ -261,7 +261,7 @@ const build = async () => { }, }, ], - { exitOnError: false }, + { exitOnError: true }, ); await tasks.run({