felangel / felangel/mason

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

Open
#676 23 comments 7 reactions 1 assignee Claimed by @felangel View on GitHub
bug customer:🦄 investigating
Dominant language
Dart
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.