From 1f275b006e4a4240e8292312f2f19b926dc463a6 Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Mon, 15 Apr 2024 21:43:02 +0200 Subject: [PATCH] fix: Ignore src_cache for container-built packages Signed-off-by: Marcel Bargull --- bioconda_utils/docker_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bioconda_utils/docker_utils.py b/bioconda_utils/docker_utils.py index 3479444b18..af56a316f8 100644 --- a/bioconda_utils/docker_utils.py +++ b/bioconda_utils/docker_utils.py @@ -111,7 +111,9 @@ conda-build -c file://{self.container_staging} {self.conda_build_args} {self.container_recipe}/meta.yaml 2>&1 # copy all built packages to the staging area -find /opt/conda/conda-bld -type f \( -name '*.tar.bz2' -o -name '*.conda' \) -print0 | +find /opt/conda/conda-bld \ + -name src_cache -prune -o \ + -type f \( -name '*.tar.bz2' -o -name '*.conda' \) -print0 | xargs -0 -- cp -t '{self.container_staging}/{arch}' -- #While technically better, this is slower and more prone to breaking #cp `conda-build {self.conda_build_args} {self.container_recipe}/meta.yaml --output | grep -e '\.tar\.bz2$' -e '\.conda$')` {self.container_staging}/{arch}