Skip to content

Commit

Permalink
fix: unboxing - nargo.toml injection of "-" for "_" (#3018)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-aztec authored and Maddiaa0 committed Oct 25, 2023
1 parent 08bf042 commit 60c1097
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yarn-project/cli/src/unbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 60c1097

Please sign in to comment.