Skip to content

Commit

Permalink
add some more info
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jan 26, 2025
1 parent fe4e1be commit 305b848
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2229,11 +2229,14 @@ def extract_single_output_text(
outputs = [{"name": self.name()}]

if len(output_matches) != len(outputs):
# See https://github.com/conda/conda-build/issues/5571
utils.get_logger(__name__).warning(
"Number of parsed outputs does not match detected raw output blocks. "
"Number of parsed outputs does not match detected raw metadata blocks. "
"Identified output block may be wrong! "
"If you are using Jinja conditionals to include or exclude outputs, "
"consider using `skip: true # [condition]` instead."
)

try:
if output_type:
output_tuples = [
Expand All @@ -2256,7 +2259,8 @@ def extract_single_output_text(
except ValueError:
if not self.path and self.meta.get("extra", {}).get("parent_recipe"):
utils.get_logger(__name__).warning(
f"Didn't match any output in raw metadata. Target value was: {output_name}"
"Didn't match any output in raw metadata. Target value was: %s",
output_name,
)
output = ""
else:
Expand Down

0 comments on commit 305b848

Please sign in to comment.