[no-relnote] Don't check for submodule changes

With the move to dependabot to udpate the libnvidia-container
submodule it is no longer required to have checks in place that
ensure that this is up to date when building.

In addition when re-building old commits in CI, for example we explicitly
do NOT want to have this check.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2024-09-20 14:38:22 +02:00
parent 9b72161b63
commit 629db79b4f

View File

@ -31,17 +31,8 @@ else
targets=${all[@]} targets=${all[@]}
fi fi
if [[ x"${SKIP_UPDATE_COMPONENTS}" != x"yes" ]]; then git submodule update --init
echo "Updating components" git submodule status
"${SCRIPTS_DIR}/update-components.sh"
if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "true" ]]; then
echo "ERROR: Building with local component changes."
echo "Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'"
exit 1
fi
else
echo "Skipping update of components"
fi
eval $(${SCRIPTS_DIR}/get-component-versions.sh) eval $(${SCRIPTS_DIR}/get-component-versions.sh)