upgrade to latest dependencies (#6107)

bumping knative.dev/hack 06f7aff...fc6a845:
  > fc6a845 Update community files (# 398)
  > 9724320 Fix premature codegen cleanup exit on 1 (# 397)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
Knative Automation 2024-09-16 08:41:50 -04:00 committed by GitHub
parent ffaf5bf4db
commit 4273dd4537
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 15 deletions

2
go.mod
View File

@ -14,7 +14,7 @@ require (
google.golang.org/grpc v1.56.3 google.golang.org/grpc v1.56.3
gopkg.in/go-playground/webhooks.v3 v3.13.0 gopkg.in/go-playground/webhooks.v3 v3.13.0
gopkg.in/yaml.v2 v2.3.0 gopkg.in/yaml.v2 v2.3.0
knative.dev/hack v0.0.0-20240814130635-06f7aff93954 knative.dev/hack v0.0.0-20240909014011-fc6a8452af6d
) )
require ( require (

4
go.sum
View File

@ -241,5 +241,5 @@ honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.5 h1:nI5egYTGJakVyOryqLs1cQO5dO0ksin5XXs2pspk75k= 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= honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
knative.dev/hack v0.0.0-20240814130635-06f7aff93954 h1:dGMK5VoL75szvrYQTL9NqhPYHu1f5dGaXx1hJI8fAFM= knative.dev/hack v0.0.0-20240909014011-fc6a8452af6d h1:mgROhGJG3+g0SBkaG4Y2HxrIOLN3ZZcN4+IFZla+Zqs=
knative.dev/hack v0.0.0-20240814130635-06f7aff93954/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY= knative.dev/hack v0.0.0-20240909014011-fc6a8452af6d/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=

View File

@ -133,16 +133,18 @@ function restore-changes-if-its-copyright-year-only() {
local difflist local difflist
log "Cleaning up generated code" log "Cleaning up generated code"
difflist="$(mktemp)" difflist="$(mktemp)"
git diff --exit-code --name-only > "$difflist" if ! git diff --exit-code --name-only > /dev/null; then
# list git changes and skip those which differ only in the boilerplate year # list git changes and skip those which differ only in the boilerplate year
while read -r file; do git diff --name-only > "$difflist"
# check if the file contains just the change in the boilerplate year while read -r file; do
if [ "$(LANG=C git diff --exit-code --shortstat -- "$file")" = ' 1 file changed, 1 insertion(+), 1 deletion(-)' ] && \ # check if the file contains just the change in the boilerplate year
[[ "$(git diff --exit-code -U1 -- "$file" | grep -Ec '^[+-]\s*[*#]?\s*Copyright 2[0-9]{3}')" -eq 2 ]]; then if [ "$(LANG=C git diff --exit-code --shortstat -- "$file")" = ' 1 file changed, 1 insertion(+), 1 deletion(-)' ] && \
# restore changes to that file [[ "$(git diff --exit-code -U1 -- "$file" | grep -Ec '^[+-]\s*[*#]?\s*Copyright 2[0-9]{3}')" -eq 2 ]]; then
git checkout -- "$file" # restore changes to that file
fi git checkout -- "$file"
done < "$difflist" fi
done < "$difflist"
fi
rm -f "$difflist" rm -f "$difflist"
} }

View File

@ -774,7 +774,7 @@ function go_update_deps() {
function __clean_goworksum_if_exists() { function __clean_goworksum_if_exists() {
if [ -f "$REPO_ROOT_DIR/go.work.sum" ]; then if [ -f "$REPO_ROOT_DIR/go.work.sum" ]; then
log.step 'Cleaning the go.work.sum file' log.step 'Cleaning the go.work.sum file'
truncate --size 0 "$REPO_ROOT_DIR/go.work.sum" truncate -s 0 "$REPO_ROOT_DIR/go.work.sum"
fi fi
} }

2
vendor/modules.txt vendored
View File

@ -318,7 +318,7 @@ gopkg.in/go-playground/webhooks.v3/github
gopkg.in/yaml.v2 gopkg.in/yaml.v2
# honnef.co/go/tools v0.0.1-2020.1.5 # honnef.co/go/tools v0.0.1-2020.1.5
## explicit; go 1.11 ## explicit; go 1.11
# knative.dev/hack v0.0.0-20240814130635-06f7aff93954 # knative.dev/hack v0.0.0-20240909014011-fc6a8452af6d
## explicit; go 1.21 ## explicit; go 1.21
knative.dev/hack knative.dev/hack
# go.opencensus.io => go.opencensus.io v0.20.2 # go.opencensus.io => go.opencensus.io v0.20.2