Skip to content

Commit b7cf0b1

Browse files
beckermrjaimergp
andauthored
fix: do not modify recipe outputs list (#5711)
* fix: do not extract outputs text for non-outputs * doc: added news item * fix: do not modify original * refactor: clean up copy to only apply to metdata input * fix: remove comment * doc: update news item * [ci skip] doc: update news item * Update metadata.py * fix: use .copy Co-authored-by: jaimergp <[email protected]> --------- Co-authored-by: jaimergp <[email protected]>
1 parent d42396f commit b7cf0b1

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

conda_build/metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def get_output_dicts_from_metadata(
994994
metadata: MetaData,
995995
outputs: list[dict[str, Any]] | None = None,
996996
) -> list[dict[str, Any]]:
997-
outputs = outputs or metadata.get_section("outputs")
997+
outputs = outputs or metadata.get_section("outputs").copy()
998998

999999
if not outputs:
10001000
outputs = [{"name": metadata.name()}]
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### Enhancements
2+
3+
* <news item>
4+
5+
### Bug fixes
6+
7+
* Fixed bug where recipe outputs lists was modified during parsing. This
8+
caused false-positive warnings about inconsistent recipe outputs due to
9+
jinja2 structures and crashes when getting the recipe text. (#5711)
10+
11+
### Deprecations
12+
13+
* <news item>
14+
15+
### Docs
16+
17+
* <news item>
18+
19+
### Other
20+
21+
* <news item>

0 commit comments

Comments
 (0)