diff --git a/Gopkg.lock b/Gopkg.lock index 038bee29d..776188d02 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -501,14 +501,14 @@ [[projects]] branch = "master" - digest = "1:472814638003e0a895a794f2647e4f5b1c888f211d803535c1da5e276257033a" + digest = "1:5b6f7bfb020127ddf61b50eeead0fc65e5884d133fff08314ebb964617c6ce69" name = "knative.dev/test-infra" packages = [ "scripts", "tools/dep-collector", ] pruneopts = "UT" - revision = "2b7ecf0da96165d1523bc8b24880b92a2cb15c5f" + revision = "ef4fd3ad398f9bd7370aa6741fae9c2f1116ced1" [solve-meta] analyzer-name = "dep" diff --git a/vendor/knative.dev/test-infra/scripts/library.sh b/vendor/knative.dev/test-infra/scripts/library.sh index 0b3927419..092f39811 100755 --- a/vendor/knative.dev/test-infra/scripts/library.sh +++ b/vendor/knative.dev/test-infra/scripts/library.sh @@ -544,7 +544,8 @@ function update_licenses() { local dst=$1 local dir=$2 shift - run_go_tool github.com/google/go-licenses go-licenses save "${dir}" --save_path="${dst}" --force || return 1 + run_go_tool github.com/google/go-licenses go-licenses save "${dir}" --save_path="${dst}" --force || \ + { echo "--- FAIL: go-licenses failed to update licenses"; return 1; } # Hack to make sure directories retain write permissions after save. This # can happen if the directory being copied is a Go module. # See https://github.com/google/go-licenses/issues/11 @@ -554,7 +555,8 @@ function update_licenses() { # Run go-licenses to check for forbidden licenses. function check_licenses() { # Check that we don't have any forbidden licenses. - run_go_tool github.com/google/go-licenses go-licenses check "${REPO_ROOT_DIR}/..." || return 1 + run_go_tool github.com/google/go-licenses go-licenses check "${REPO_ROOT_DIR}/..." || \ + { echo "--- FAIL: go-licenses failed the license check"; return 1; } } # Run the given linter on the given files, checking it exists first. diff --git a/vendor/knative.dev/test-infra/scripts/shellcheck-presubmit.sh b/vendor/knative.dev/test-infra/scripts/shellcheck-presubmit.sh index ce1515bd3..d9c48129a 100755 --- a/vendor/knative.dev/test-infra/scripts/shellcheck-presubmit.sh +++ b/vendor/knative.dev/test-infra/scripts/shellcheck-presubmit.sh @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright 2020 The Knative Authors +# +# 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 -e source "$(dirname "${BASH_SOURCE[0]}")/library.sh"