From b2075e69937817e7f5b93f83c5b26614ad0ab654 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 17 Dec 2024 13:26:29 +0100 Subject: [PATCH] try to be more precise with parser hints (#2190) Co-authored-by: Matthew R. Becker --- conda_smithy/linter/lints.py | 21 +++++++++++++++++---- news/2190-hints.rst | 23 +++++++++++++++++++++++ 2 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 news/2190-hints.rst diff --git a/conda_smithy/linter/lints.py b/conda_smithy/linter/lints.py index d800381b1..1a12485e8 100644 --- a/conda_smithy/linter/lints.py +++ b/conda_smithy/linter/lints.py @@ -1102,9 +1102,22 @@ def lint_recipe_is_parsable( ) for parser_name, pv in parse_results.items(): if pv is False: + if parser_name == "conda-souschef (grayskull)": + msg = ( + "This parser is not currently used by conda-forge, but may be in the future. " + "We are collecting information to see which recipes are compatible with grayskull." + ) + elif parser_name == "conda-recipe-manager": + msg = ( + "The recipe can only be automatically migrated to the new v1 format " + "if it is parseable by conda-recipe-manager." + ) + else: + msg = ( + "Your recipe may not receive automatic updates and/or may not be compatible " + "with conda-forge's infrastructure. Please check the logs for " + "more information and ensure your recipe can be parsed." + ) hints.append( - f"The recipe is not parsable by parser `{parser_name}`. Your recipe " - "may not receive automatic updates and/or may not be compatible " - "with conda-forge's infrastructure. Please check the logs for " - "more information and ensure your recipe can be parsed." + f"The recipe is not parsable by parser `{parser_name}`. {msg}" ) diff --git a/news/2190-hints.rst b/news/2190-hints.rst new file mode 100644 index 000000000..98b52c764 --- /dev/null +++ b/news/2190-hints.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* Try to be more specific in hints when different parsers fail (#2190) + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +*