felangel / felangel/mason

fix: On windows path gets resolved with error because all / get replaced with \ even in closing tokens

Abierto
#676 23 comentarios 7 reacciones 1 asignado Reclamado por @felangel Ver en GitHub
bug customer:🦄 investigating
Lenguaje dominante
Dart
Estrellas
1.1k
Forks
113
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Description**

`/` that are part of the closing tokens aka `{{/foo}}` get converted to a `\` on windows when used in path.

**Steps To Reproduce**

1. Brick with `__brick__/{{#foo}}boom/baam/booz{{/foo}}/README.md`
2. Generate README.md

**Expected Behavior**
README.md should be generated at location `boom\baam\booz\` if foo is true

But instead the `/`from `{{/foo}}` gets convertet to a `\` and leads to an error
`OS Error: The system cannot find the path specified`

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.