From 7da6019778a8b872255249e083f6b871fb6ec1e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Thu, 16 May 2024 19:52:51 +0200
Subject: [PATCH] fix : missing path proc in find

---
 .../cibuildwheel_build_deps_before_build_wheel.sh | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
index ae77600..0bdab1b 100644
--- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
+++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
@@ -13,14 +13,15 @@ if [[ $AIDGE_DEPENDENCIES ==  "" ]]; then # case for aidge_ core
 else 
   for repo in $AIDGE_DEPENDENCIES ; do # case for other projects
     search_path=$1
-    REPO_PATH=$(find $search_path -type d -name $repo \
-                                -not -path '*install*' \
-                                -not -path '*.git*' \
-                                -not -path '*miniconda*' \
-                                -not -path '*conda*' \
-                                -not -path '*.local*' \
-                                -not -path "*lib*" \
+    REPO_PATH=$(find $search_path -type d -name $repo      \
+                                -not -path '*install*'     \
+                                -not -path '*.git*'        \
+                                -not -path '*miniconda*'   \
+                                -not -path '*conda*'       \
+                                -not -path '*.local*'      \
+                                -not -path "*lib*"         \
                                 -not -path "*/$repo/$repo" \
+                                -not -path "*/proc/*"      \
                                 -print -quit) 
     if [[ "$REPO_PATH" == "" ]]; then 
       echo "ERROR : dependency $repo not found in search_path \"$search_path\". ABORTING."
-- 
GitLab