From 60c10972dd00746405381b738a58f1e2c1d3be57 Mon Sep 17 00:00:00 2001 From: Dan Lee <142251406+dan-aztec@users.noreply.github.com> Date: Tue, 24 Oct 2023 17:09:30 -0700 Subject: [PATCH] fix: unboxing - nargo.toml injection of "-" for "_" (#3018) --- yarn-project/cli/src/unbox.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yarn-project/cli/src/unbox.ts b/yarn-project/cli/src/unbox.ts index 2173fb62ef24..ea5e59bfec61 100644 --- a/yarn-project/cli/src/unbox.ts +++ b/yarn-project/cli/src/unbox.ts @@ -178,7 +178,11 @@ async function updateNargoToml(tag: string, outputPath: string, log: LogFn): Pro if (key) { // Replace the line, which was configured for compiling within the `aztec-packages` monorepo. We replace // the local path with `git` and `directory` fields with a `tag` field, which points to the tagged release - return `${key} = { git="https://github.com/AztecProtocol/aztec-packages/", tag="${tag}", directory="yarn-project/aztec-nr/${key}" }`; + // note that the key has a "_" in the name, but we use "-" in the github repo folder + return `${key} = { git="https://github.com/AztecProtocol/aztec-packages/", tag="${tag}", directory="yarn-project/aztec-nr/${key.replace( + '_', + '-', + )}" }`; } return line; });