diff --git a/.changeset/upset-snails-attack.md b/.changeset/upset-snails-attack.md new file mode 100644 index 00000000..02d6623b --- /dev/null +++ b/.changeset/upset-snails-attack.md @@ -0,0 +1,5 @@ +--- +"@cartesi/cli": patch +--- + +fix command create --template=cpp was conflicting with cpp-low-level diff --git a/apps/cli/src/template.ts b/apps/cli/src/template.ts index 38aed9cf..d0ba2964 100644 --- a/apps/cli/src/template.ts +++ b/apps/cli/src/template.ts @@ -33,7 +33,7 @@ export const download = async ( filter: (header) => { // remove first path segment const pathname = header.name.split("/").splice(1).join("/"); - return pathname.startsWith(template); + return pathname.startsWith(`${template}/`); }, map: (header) => { // remove first path segment