Skip to content

Commit

Permalink
fix: Ignore src_cache for container-built packages
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Apr 15, 2024
1 parent e478e52 commit 1f275b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bioconda_utils/docker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1f275b0

Please sign in to comment.