File tree Expand file tree Collapse file tree 3 files changed +45
-1
lines changed
Expand file tree Collapse file tree 3 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 5151 targets=${all[@]}
5252fi
5353
54+ echo " Updating components"
55+ ${SCRIPTS_DIR} /update-components.sh
56+ if [[ -n $( git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != " true" ]]; then
57+ echo " ERROR: Building with local component changes."
58+ echo " Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'"
59+ exit 1
60+ fi
61+
5462eval $( ${SCRIPTS_DIR} /get-component-versions.sh)
5563
5664if [[ " ${NVIDIA_CONTAINER_TOOLKIT_VERSION}${NVIDIA_CONTAINER_TOOLKIT_TAG: +~${NVIDIA_CONTAINER_TOOLKIT_TAG} } " != " ${LIBNVIDIA_CONTAINER_VERSION} " ]]; then
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
4+ #
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
17+ set -e -x
18+
19+ SCRIPTS_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " /../scripts && pwd ) "
20+ PROJECT_ROOT=" $( cd ${SCRIPTS_DIR} /.. && pwd ) "
21+
22+ git submodule update --init
23+
24+ echo " Component status before update"
25+ git submodule status
26+
27+ # We update all submodules from their respective remotes
28+ # NOTE: Appending `-- [PATH]` will limit the update to a specific component
29+ git submodule update --remote
30+
31+ if [[ -z $( git status -s third_party) ]]; then
32+ echo " Components already up to date"
33+ else
34+ echo " Components updated"
35+ git submodule status
36+ fi
You can’t perform that action at this time.
0 commit comments