Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit 93e33bc

Browse files
authored
fix: make sure to cleanup files at context manager exit, but not on close
1 parent 8fffc49 commit 93e33bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conda_forge_feedstock_check_solvable/rattler_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def invoke_rattler_build(
3535
# this is OK since there is an lru cache
3636
virtual_package_repo_url = virtual_package_repodata()
3737
# create a temporary file and dump the variants as YAML
38-
with tempfile.NamedTemporaryFile(mode="w", delete=False) as variants_file:
38+
with tempfile.NamedTemporaryFile(mode="w", delete_on_close=False) as variants_file:
3939
channel_sources = variants.get("channel_sources", [])
4040
# Add virtual package repo URL to channel sources
4141
if channel_sources:

0 commit comments

Comments
 (0)