felangel / felangel/mason

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

Aperta
#676 23 commenti 7 reazioni 1 assegnatario Rivendicata da @felangel Vedi su GitHub
bug customer:🦄 investigating
Lingua principale
Dart
Stelle
1.1k
Fork
113
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.