From 8145317a34ae39134ef7274a9c8ce8fd98407089 Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Fri, 15 Sep 2023 18:42:23 -0400 Subject: [PATCH] allow backslash in package readme specifications This fixes machinelearningservices generation. ref: --- services/autorust/codegen/src/config_parser.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/autorust/codegen/src/config_parser.rs b/services/autorust/codegen/src/config_parser.rs index cbe2685c19..c4b91198f0 100644 --- a/services/autorust/codegen/src/config_parser.rs +++ b/services/autorust/codegen/src/config_parser.rs @@ -142,6 +142,9 @@ mod literate_config { let yaml = extract_yaml(node)? .ok_or_else(|| Error::message(ErrorKind::Parse, "Expected configuration tag to contain a YAML code block."))?; let mut tag: Tag = serde_yaml::from_str(&yaml).context(ErrorKind::Parse, "reading configuration block yaml")?; + for input_file in tag.input_files.iter_mut() { + *input_file = input_file.replace('\\', "/"); + } tag.tag = tag_name; tags.push(tag); } else if is_header_at_level(node, 2) {