upgrade to latest dependencies (#2154)

bumping knative.dev/hack e35bcb8...3d4b264:
  > 3d4b264 Cleanup release script more (# 74)
  > daccc2c Allow for ignoring arbitrary files with shellcheck (# 48)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2021-06-10 22:39:44 -07:00 committed by GitHub
parent 8d21ce6c63
commit 9593069dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 7 deletions

2
go.mod
View File

@ -64,6 +64,6 @@ require (
k8s.io/code-generator v0.20.7
k8s.io/gengo v0.0.0-20210203185629-de9496dff47b
k8s.io/klog v1.0.0
knative.dev/hack v0.0.0-20210609124042-e35bcb8f21ec
knative.dev/hack v0.0.0-20210610231243-3d4b264d9472
sigs.k8s.io/yaml v1.2.0
)

4
go.sum
View File

@ -1063,8 +1063,8 @@ k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhD
k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM=
k8s.io/utils v0.0.0-20201110183641-67b214c5f920 h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g7yaSHkYPkpgelw=
k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
knative.dev/hack v0.0.0-20210609124042-e35bcb8f21ec h1:6+/kYzOv4SSgzvJer3fZS22pzXQG0haZdue2FsheNrM=
knative.dev/hack v0.0.0-20210609124042-e35bcb8f21ec/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/hack v0.0.0-20210610231243-3d4b264d9472 h1:sPXp3IChxDMPFRyP9LGvb+hoa6xP9NhnLhT16Y6Icx0=
knative.dev/hack v0.0.0-20210610231243-3d4b264d9472/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
pgregory.net/rapid v0.3.3 h1:jCjBsY4ln4Atz78QoBWxUEvAHaFyNDQg9+WU62aCn1U=
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=

View File

@ -773,9 +773,14 @@ function get_latest_knative_yaml_source() {
function shellcheck_new_files() {
declare -a array_of_files
local failed=0
if [ -z "$SHELLCHECK_IGNORE_FILES" ]; then
SHELLCHECK_IGNORE_FILES="^vendor/"
fi
readarray -t array_of_files < <(list_changed_files)
for filename in "${array_of_files[@]}"; do
if echo "${filename}" | grep -q "^vendor/"; then
if echo "${filename}" | grep -q "$SHELLCHECK_IGNORE_FILES"; then
continue
fi
if file "${filename}" | grep -q "shell script"; then

View File

@ -18,6 +18,7 @@
# See README.md for instructions on how to use it.
source $(dirname "${BASH_SOURCE[0]}")/library.sh
set -x
# Organization name in GitHub; defaults to Knative.
readonly ORG_NAME="${ORG_NAME:-knative}"
@ -114,8 +115,11 @@ function hub_tool() {
# Parameters: $1..$n - arguments to "git push <repo>".
function git_push() {
local repo_url="${REPO_UPSTREAM}"
[[ -n "${GITHUB_TOKEN}}" ]] && repo_url="${repo_url/:\/\//:\/\/${GITHUB_TOKEN}@}"
git push "${repo_url}" $@
local git_args=$@
# Subshell (parentheses) used to prevent GITHUB_TOKEN from printing in log
(set +x;
[[ -n "${GITHUB_TOKEN}}" ]] && repo_url="${repo_url/:\/\//:\/\/${GITHUB_TOKEN}@}";
git push "${repo_url}" ${git_args} )
}
# Return the master version of a release.
@ -359,9 +363,14 @@ function parse_flags() {
case ${parameter} in
--github-token)
[[ ! -f "$1" ]] && abort "file $1 doesn't exist"
local old="$(set +o)"
# Prevent GITHUB_TOKEN from printing in log
set +x
# Remove any trailing newline/space from token
# ^ (That's not what echo -n does, it just doesn't *add* a newline, but I'm leaving it)
GITHUB_TOKEN="$(echo -n $(cat "$1"))"
[[ -n "${GITHUB_TOKEN}" ]] || abort "file $1 is empty"
eval "$old" # restore xtrace status
;;
--release-gcr)
KO_DOCKER_REPO=$1

2
vendor/modules.txt vendored
View File

@ -956,7 +956,7 @@ k8s.io/utils/buffer
k8s.io/utils/integer
k8s.io/utils/pointer
k8s.io/utils/trace
# knative.dev/hack v0.0.0-20210609124042-e35bcb8f21ec
# knative.dev/hack v0.0.0-20210610231243-3d4b264d9472
## explicit
knative.dev/hack
# sigs.k8s.io/structured-merge-diff/v4 v4.0.3