Skip to content

Commit

Permalink
parse properly
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Dec 1, 2024
1 parent 7698c78 commit f5c5cb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/recipe/parser/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,14 @@ impl TryConvertNode<TestType> for RenderedMappingNode {
let package_contents = as_mapping(value, key_str)?.try_convert(key_str)?;
test = TestType::PackageContents { package_contents };
}
"perl" => {
let perl = as_mapping(value, key_str)?.try_convert(key_str)?;
test = TestType::Perl { perl };
}
invalid => Err(vec![_partialerror!(
*key.span(),
ErrorKind::InvalidField(invalid.to_string().into()),
help = format!("expected fields for {name} is one of `python`, `script`, `downstream`, `package_contents`")
help = format!("expected fields for {name} is one of `python`, `perl`, `script`, `downstream`, `package_contents`")
)])?
}
Ok(())
Expand Down

0 comments on commit f5c5cb4

Please sign in to comment.