mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-04-10 15:25:33 +00:00
Allow update of subcomponents to be skipped
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
c30764b7cc
commit
9fb5ac36ed
@ -46,12 +46,16 @@ else
|
|||||||
targets=${all[@]}
|
targets=${all[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Updating components"
|
if [[ -z ${SKIP_UPDATE_COMPONENTS} ]]; then
|
||||||
"${SCRIPTS_DIR}/update-components.sh"
|
echo "Updating components"
|
||||||
if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "true" ]]; then
|
"${SCRIPTS_DIR}/update-components.sh"
|
||||||
echo "ERROR: Building with local component changes."
|
if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "true" ]]; then
|
||||||
echo "Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'"
|
echo "ERROR: Building with local component changes."
|
||||||
exit 1
|
echo "Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Skipping update of components"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval $(${SCRIPTS_DIR}/get-component-versions.sh)
|
eval $(${SCRIPTS_DIR}/get-component-versions.sh)
|
||||||
|
Loading…
Reference in New Issue
Block a user