Skip to content

Commit

Permalink
Fixes problems with fetching LFS objects during nvImageCodec conda bu…
Browse files Browse the repository at this point in the history
…ild (#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 conda/conda-build#1462

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
  • Loading branch information
JanuszL authored Aug 12, 2024
1 parent bff5aef commit 123f4f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions conda/build_conda_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 123f4f2

Please sign in to comment.