Skip to content

Commit 357565d

Browse files
committed
expand-yaml-anchors: Make the output directory separator-insensitive
1 parent 3c45bff commit 357565d

File tree

1 file changed

+2
-1
lines changed
  • src/tools/expand-yaml-anchors/src

1 file changed

+2
-1
lines changed

Diff for: src/tools/expand-yaml-anchors/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ impl App {
8787
let content = std::fs::read_to_string(source)
8888
.with_context(|| format!("failed to read {}", self.path(source)))?;
8989

90-
let mut buf = HEADER_MESSAGE.replace("{source}", &self.path(source).to_string());
90+
let mut buf =
91+
HEADER_MESSAGE.replace("{source}", &self.path(source).to_string().replace("\\", "/"));
9192

9293
let documents = YamlLoader::load_from_str(&content)
9394
.with_context(|| format!("failed to parse {}", self.path(source)))?;

0 commit comments

Comments
 (0)