expand-yaml-anchors: Make the output directory separator-insensitive
This commit is contained in:
parent
3c45bff23d
commit
357565dc19
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ impl App {
|
||||||
let content = std::fs::read_to_string(source)
|
let content = std::fs::read_to_string(source)
|
||||||
.with_context(|| format!("failed to read {}", self.path(source)))?;
|
.with_context(|| format!("failed to read {}", self.path(source)))?;
|
||||||
|
|
||||||
let mut buf = HEADER_MESSAGE.replace("{source}", &self.path(source).to_string());
|
let mut buf =
|
||||||
|
HEADER_MESSAGE.replace("{source}", &self.path(source).to_string().replace("\\", "/"));
|
||||||
|
|
||||||
let documents = YamlLoader::load_from_str(&content)
|
let documents = YamlLoader::load_from_str(&content)
|
||||||
.with_context(|| format!("failed to parse {}", self.path(source)))?;
|
.with_context(|| format!("failed to parse {}", self.path(source)))?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue