File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,26 @@ source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/library.sh
2222
2323cd ${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.
2947rm -rf vendor/github.com/knative/eventing/cmd/
You can’t perform that action at this time.
0 commit comments