Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes problems with fetching LFS objects during nvImageCodec conda build #5603

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading