Skip to content

Commit

Permalink
Rollup merge of #80026 - JohnTitor:separator-insensitive, r=Mark-Simu…
Browse files Browse the repository at this point in the history
…lacrum

expand-yaml-anchors: Make the output directory separator-insensitive

Fixes #75709
  • Loading branch information
JohnTitor authored Dec 17, 2020
2 parents a611f8d + 357565d commit f645e30
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 f645e30

Please sign in to comment.