Skip to content

Commit

Permalink
Warn if parsed and raw outputs mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jan 25, 2025
1 parent cf35214 commit 5509017
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2228,6 +2228,12 @@ def extract_single_output_text(
if not outputs:
outputs = [{"name": self.name()}]

if len(output_matches) != len(outputs):
log.warning(
"Number of parsed outputs does not match detected raw output blocks. "
"If you are using Jinja conditionals to include or exclude outputs, "
"consider using `skip: true # [condition]` instead."
)
try:
if output_type:
output_tuples = [
Expand Down

0 comments on commit 5509017

Please sign in to comment.