mirror of https://github.com/knative/docs.git
[master] Auto-update dependencies (#2469)
Produced via: `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh` /assign dprotaso grantr samodell /cc dprotaso grantr samodell
This commit is contained in:
parent
7dd9f03762
commit
5147732666
|
@ -501,14 +501,14 @@
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:472814638003e0a895a794f2647e4f5b1c888f211d803535c1da5e276257033a"
|
digest = "1:5b6f7bfb020127ddf61b50eeead0fc65e5884d133fff08314ebb964617c6ce69"
|
||||||
name = "knative.dev/test-infra"
|
name = "knative.dev/test-infra"
|
||||||
packages = [
|
packages = [
|
||||||
"scripts",
|
"scripts",
|
||||||
"tools/dep-collector",
|
"tools/dep-collector",
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "2b7ecf0da96165d1523bc8b24880b92a2cb15c5f"
|
revision = "ef4fd3ad398f9bd7370aa6741fae9c2f1116ced1"
|
||||||
|
|
||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
|
|
|
@ -544,7 +544,8 @@ function update_licenses() {
|
||||||
local dst=$1
|
local dst=$1
|
||||||
local dir=$2
|
local dir=$2
|
||||||
shift
|
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
|
# Hack to make sure directories retain write permissions after save. This
|
||||||
# can happen if the directory being copied is a Go module.
|
# can happen if the directory being copied is a Go module.
|
||||||
# See https://github.com/google/go-licenses/issues/11
|
# See https://github.com/google/go-licenses/issues/11
|
||||||
|
@ -554,7 +555,8 @@ function update_licenses() {
|
||||||
# Run go-licenses to check for forbidden licenses.
|
# Run go-licenses to check for forbidden licenses.
|
||||||
function check_licenses() {
|
function check_licenses() {
|
||||||
# Check that we don't have any forbidden 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.
|
# Run the given linter on the given files, checking it exists first.
|
||||||
|
|
|
@ -1,5 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
set -e
|
||||||
|
|
||||||
source "$(dirname "${BASH_SOURCE[0]}")/library.sh"
|
source "$(dirname "${BASH_SOURCE[0]}")/library.sh"
|
||||||
|
|
Loading…
Reference in New Issue