Skip to content

Commit ba6d1ed

Browse files
authored
Add --upgrade to ./hack/update-deps.sh (#2263)
1 parent 11b88c3 commit ba6d1ed

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

hack/update-deps.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,26 @@ source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/library.sh
2222

2323
cd ${REPO_ROOT_DIR}
2424

25+
# The list of dependencies that we track at HEAD and periodically
26+
# float forward in this repository.
27+
FLOATING_DEPS=(
28+
"knative.dev/test-infra"
29+
)
30+
31+
# Parse flags to determine any we should pass to dep.
32+
DEP_FLAGS=()
33+
while [[ $# -ne 0 ]]; do
34+
parameter=$1
35+
case ${parameter} in
36+
--upgrade) DEP_FLAGS=( -update ${FLOATING_DEPS[@]} ) ;;
37+
*) abort "unknown option ${parameter}" ;;
38+
esac
39+
shift
40+
done
41+
readonly DEP_FLAGS
42+
2543
# Ensure we have everything we need under vendor/
26-
dep ensure
44+
dep ensure ${DEP_FLAGS[@]}
2745

2846
# Remove the cmd dir from eventing.
2947
rm -rf vendor/github.com/knative/eventing/cmd/

0 commit comments

Comments
 (0)