diff --git a/crates/rattler_build_recipe/src/stage0/parser/mod.rs b/crates/rattler_build_recipe/src/stage0/parser/mod.rs index b26f679c6..c34894d43 100644 --- a/crates/rattler_build_recipe/src/stage0/parser/mod.rs +++ b/crates/rattler_build_recipe/src/stage0/parser/mod.rs @@ -254,7 +254,8 @@ fn parse_single_output_recipe_with_config( let key_str = key.as_str(); if !matches!( key_str, - "package" + "$schema" + | "package" | "build" | "about" | "requirements" diff --git a/test-data/recipes/test-parsing/single_output.yaml b/test-data/recipes/test-parsing/single_output.yaml index 4046bd801..43b07061c 100644 --- a/test-data/recipes/test-parsing/single_output.yaml +++ b/test-data/recipes/test-parsing/single_output.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json +$schema: https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json schema_version: 1 # a recipe with all possible fields package: