Skip to content

Commit

Permalink
expand-yaml-anchors: Make the output directory separator-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Dec 14, 2020
1 parent 3c45bff commit 357565d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/expand-yaml-anchors/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ impl App {
let content = std::fs::read_to_string(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)
.with_context(|| format!("failed to parse {}", self.path(source)))?;
Expand Down

0 comments on commit 357565d

Please sign in to comment.