Allow update of subcomponents to be skipped

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-04-25 16:51:19 +02:00
parent c30764b7cc
commit 9fb5ac36ed

View File

@ -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)