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

Commit 5dc61d0

Browse files
authored
fix: try using pixi to clean up caches when running rattler-build (#85)
* fix: try using pixi to clean up caches when running rattler-build * Add pixi to requirements
1 parent 2139e59 commit 5dc61d0

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

conda_forge_feedstock_check_solvable/rattler_build.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ def run_rattler_build(command):
2727
return status_code, stdout, stderr
2828
except Exception as e:
2929
return -1, "", str(e)
30+
finally:
31+
try:
32+
subprocess.run(
33+
[
34+
"pixi",
35+
"clean",
36+
"cache",
37+
"--yes",
38+
],
39+
check=False,
40+
capture_output=True,
41+
)
42+
except Exception as e:
43+
print_debug("pixi clean cache command failed: %r", e)
3044

3145

3246
def invoke_rattler_build(

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ requests
1212
zstandard
1313
boltons>=23.0.0
1414
py-rattler>=0.9.0,<0.10a0
15+
pixi

0 commit comments

Comments
 (0)