From 123f4f2eed2ff77433706c9a54320ebb77696115 Mon Sep 17 00:00:00 2001 From: Janusz Lisiecki <39967756+JanuszL@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:15:47 +0200 Subject: [PATCH] Fixes problems with fetching LFS objects during nvImageCodec conda build (#5603) - conda does bare mirror first and then clones the code to the build dir it also fetches the LFS object, but it does that only for the built reference, if there are other objects they are left out. Then it does the full cone and checkout and that is why it complains about missing objects. Also, it doesn't allow running any post-clone hooks. see https://github.com/conda/conda-build/issues/1462 Signed-off-by: Janusz Lisiecki --- conda/build_conda_packages.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conda/build_conda_packages.sh b/conda/build_conda_packages.sh index e5c9bffd87c..4dfb6a8ed70 100644 --- a/conda/build_conda_packages.sh +++ b/conda/build_conda_packages.sh @@ -61,7 +61,16 @@ conda mambabuild ${CONDA_BUILD_OPTIONS} third_party/dali_opencv/recipe conda mambabuild ${CONDA_BUILD_OPTIONS} third_party/dali_ffmpeg/recipe # Build nvimagecodec +# conda does bare mirror first and then clones the code to the build dir +# it also fetches the LFS object, but it does that only for the built reference, if there are +# other objects they are left out. Then it does the full cone and checkout and that is why it +# complains about missing objects. Also, it doesn't allow running any post-clone hooks. +# see https://github.com/conda/conda-build/issues/1462 +export GIT_LFS_SKIP_SMUDGE=1 +export GIT_CLONE_PROTECTION_ACTIVE=false conda mambabuild ${CONDA_BUILD_OPTIONS} third_party/dali_nvimagecodec/recipe +export GIT_LFS_SKIP_SMUDGE=0 +export GIT_CLONE_PROTECTION_ACTIVE=true # Building DALI core package conda mambabuild ${CONDA_BUILD_OPTIONS} dali_native_libs/recipe