From 01d085d65e9c90d2797af276cfa6f776c1f193d9 Mon Sep 17 00:00:00 2001 From: knative-automation Date: Fri, 6 May 2022 12:19:29 -0400 Subject: [PATCH] upgrade to latest dependencies (#4951) bumping knative.dev/hack 2a09b5c...ccf82ad: > ccf82ad Update community files (# 174) > 46c77f1 Skip passing enable-ha flag to test script (# 173) > 5f47386 Update community files (# 171) Signed-off-by: Knative Automation --- go.mod | 2 +- go.sum | 4 ++-- vendor/knative.dev/hack/e2e-tests.sh | 11 +++++++++-- vendor/modules.txt | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 149db3ea7..58201d488 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( gopkg.in/go-playground/webhooks.v3 v3.13.0 gopkg.in/yaml.v2 v2.3.0 honnef.co/go/tools v0.0.1-2020.1.5 // indirect - knative.dev/hack v0.0.0-20220426205654-2a09b5c38889 + knative.dev/hack v0.0.0-20220505013956-ccf82ad03f32 ) replace go.opencensus.io => go.opencensus.io v0.20.2 diff --git a/go.sum b/go.sum index df17c5447..32ed6aaef 100644 --- a/go.sum +++ b/go.sum @@ -538,8 +538,8 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.5 h1:nI5egYTGJakVyOryqLs1cQO5dO0ksin5XXs2pspk75k= honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -knative.dev/hack v0.0.0-20220426205654-2a09b5c38889 h1:hS/9rhvXv4eCEcRatXRwHbVZVTJfGVvFFSMbrxBeuBs= -knative.dev/hack v0.0.0-20220426205654-2a09b5c38889/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= +knative.dev/hack v0.0.0-20220505013956-ccf82ad03f32 h1:VDTiwtTW9TCxa8DhKJC4RIc3TBeqibLVpv9EOqVYMr8= +knative.dev/hack v0.0.0-20220505013956-ccf82ad03f32/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/vendor/knative.dev/hack/e2e-tests.sh b/vendor/knative.dev/hack/e2e-tests.sh index 9178eac2c..57222f32c 100644 --- a/vendor/knative.dev/hack/e2e-tests.sh +++ b/vendor/knative.dev/hack/e2e-tests.sh @@ -137,13 +137,17 @@ CLOUD_PROVIDER="gke" function initialize() { local run_tests=0 local custom_flags=() + local parse_script_flags=0 E2E_SCRIPT="$(get_canonical_path "$0")" local e2e_script_command=( "${E2E_SCRIPT}" "--run-tests" ) + for i in "$@"; do + if [[ $i == "--run-tests" ]]; then parse_script_flags=1; fi + done + cd "${REPO_ROOT_DIR}" while [[ $# -ne 0 ]]; do local parameter=$1 - # TODO(chizhg): remove parse_flags logic if no repos are using it. # Try parsing flag as a custom one. if function_exists parse_flags; then parse_flags "$@" @@ -152,7 +156,10 @@ function initialize() { # Skip parsed flag (and possibly argument) and continue # Also save it to it's passed through to the test script for ((i=1;i<=skip;i++)); do - e2e_script_command+=("$1") + # Avoid double-parsing + if (( parse_script_flags )); then + e2e_script_command+=("$1") + fi shift done continue diff --git a/vendor/modules.txt b/vendor/modules.txt index 48e273120..9d26c2ecd 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -286,7 +286,7 @@ gopkg.in/go-playground/webhooks.v3/github gopkg.in/yaml.v2 # honnef.co/go/tools v0.0.1-2020.1.5 ## explicit -# knative.dev/hack v0.0.0-20220426205654-2a09b5c38889 +# knative.dev/hack v0.0.0-20220505013956-ccf82ad03f32 ## explicit knative.dev/hack # go.opencensus.io => go.opencensus.io v0.20.2