mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
This adds an update/verify script pair to check `go mod vendor` in the main module. Should we do this in sub-modules too? Fixes #19
29 lines
918 B
Bash
Executable File
29 lines
918 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2026 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
ROOT="$(git rev-parse --show-toplevel)"
|
|
cd "${ROOT}"
|
|
|
|
export LC_ALL=C # for sorting to be consistent across locales
|
|
|
|
# shellcheck disable=2044 # for-loop over find output is intentional
|
|
for F in $(find ./hack/update -name '*.sh' | sort); do
|
|
echo "Running ${F}"
|
|
"${F}" "$@"
|
|
done
|