From d76c6ab938e248cc9dfbe7d54defadf2276418a9 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Thu, 16 Apr 2026 01:46:03 +0000 Subject: [PATCH] upgrade to latest dependencies bumping knative.dev/hack 9909d69...54d1312: > 54d1312 fix check_licenses GOTOOLCHAIN mismatch with go-licenses (# 464) > 748c85e Fix create kind test cluster args (# 466) bumping knative.dev/pkg e65cbe9...388556d: > 388556d upgrade to latest dependencies (# 3344) Signed-off-by: Knative Automation --- go.mod | 4 ++-- go.sum | 8 ++++---- vendor/knative.dev/hack/e2e-tests.sh | 12 ++++++++---- vendor/knative.dev/hack/infra-library.sh | 5 +++-- vendor/knative.dev/hack/library.sh | 5 ++++- vendor/modules.txt | 4 ++-- 6 files changed, 23 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 1ce59b687..8178f61f4 100644 --- a/go.mod +++ b/go.mod @@ -10,8 +10,8 @@ require ( k8s.io/client-go v0.35.3 k8s.io/code-generator v0.35.3 k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 - knative.dev/hack v0.0.0-20260415132636-9909d690ab4d - knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718 + knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 + knative.dev/pkg v0.0.0-20260415140041-388556d5c488 ) require ( diff --git a/go.sum b/go.sum index e5f780c25..c6f112fef 100644 --- a/go.sum +++ b/go.sum @@ -157,10 +157,10 @@ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ= k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck= k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -knative.dev/hack v0.0.0-20260415132636-9909d690ab4d h1:ckrA4ssLeQF0dKfvL8Do9IKR+5tHE9Oiy1eNx+3YNz8= -knative.dev/hack v0.0.0-20260415132636-9909d690ab4d/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0= -knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718 h1:/8xILwHO82gYQXgqQgP9jbSpxg8rmsl/mk1YrYtY/hs= -knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718/go.mod h1:m+Jaj5UyK7VkrEx6rt4buVX3a5eaB+vtJqEfQVGnAGQ= +knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 h1:YkboMEJ48h7DxRQSPe2SePm1yKK0YYgrsQW5Mmc0SEk= +knative.dev/hack v0.0.0-20260415233235-54d1312ccc91/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0= +knative.dev/pkg v0.0.0-20260415140041-388556d5c488 h1:7rmo6AW+6NLaWI+qTWv0ABlXz1bpdpaNnnpSBiuQ3vs= +knative.dev/pkg v0.0.0-20260415140041-388556d5c488/go.mod h1:LaL/m4gFNTSUOP0DvHNCVcruVTi5Dyzts5/6UlPuTEQ= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= diff --git a/vendor/knative.dev/hack/e2e-tests.sh b/vendor/knative.dev/hack/e2e-tests.sh index 331511cc4..426c1cd93 100644 --- a/vendor/knative.dev/hack/e2e-tests.sh +++ b/vendor/knative.dev/hack/e2e-tests.sh @@ -54,10 +54,14 @@ function setup_test_cluster() { header "Setting up test cluster" kubectl get nodes - # Set the actual project the test cluster resides in - # It will be a project assigned by Boskos if test is running on Prow, - # otherwise will be ${E2E_GCP_PROJECT_ID} set up by user. - E2E_PROJECT_ID="$(gcloud config get-value project)" + # Set the actual project the test cluster resides in. For GKE this + # comes from the Boskos-configured gcloud context; for other + # providers (e.g. kind) it is not meaningful and is left empty. + if [[ "${CLOUD_PROVIDER}" == "gke" ]]; then + E2E_PROJECT_ID="$(gcloud config get-value project)" + else + E2E_PROJECT_ID="" + fi export E2E_PROJECT_ID readonly E2E_PROJECT_ID diff --git a/vendor/knative.dev/hack/infra-library.sh b/vendor/knative.dev/hack/infra-library.sh index e74b839e9..db364ed89 100644 --- a/vendor/knative.dev/hack/infra-library.sh +++ b/vendor/knative.dev/hack/infra-library.sh @@ -84,7 +84,8 @@ function dump_cluster_state() { # Create a test cluster and run the tests if provided. # Parameters: $1 - cluster provider name, e.g. gke # $2 - custom flags supported by kntest -# $3 - test command to run after cluster is created +# $3 - extra gcloud flags (gke only) +# $4 - test command to run after cluster is created function create_test_cluster() { # Fail fast during setup. set -o errexit @@ -96,7 +97,7 @@ function create_test_cluster() { case "$1" in gke) create_gke_test_cluster "$2" "$3" "$4" "${5:-}" ;; - kind) create_kind_test_cluster "$2" "$3" "${4:-}" ;; + kind) create_kind_test_cluster "$2" "${4:-}" ;; *) echo "unsupported provider: $1"; exit 1 ;; esac diff --git a/vendor/knative.dev/hack/library.sh b/vendor/knative.dev/hack/library.sh index 2dbe5a7a0..6eb566795 100644 --- a/vendor/knative.dev/hack/library.sh +++ b/vendor/knative.dev/hack/library.sh @@ -922,7 +922,10 @@ function run_kntest() { # Run go-licenses to check for forbidden licenses. function check_licenses() { - # Check that we don't have any forbidden licenses. + # Pin GOTOOLCHAIN to the project's Go version so that go-licenses is + # compiled with the same toolchain. GOTOOLCHAIN=auto (the go_run default) + # may select a different Go, causing isStdLib() path mismatches. + GOTOOLCHAIN="$(go env GOVERSION)" \ go_run github.com/google/go-licenses/v2@v2.0.1 \ check "${REPO_ROOT_DIR}/..." || \ { echo "--- FAIL: go-licenses failed the license check"; return 1; } diff --git a/vendor/modules.txt b/vendor/modules.txt index 2b34a74fd..ef6bda75f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -729,10 +729,10 @@ k8s.io/utils/lru k8s.io/utils/net k8s.io/utils/ptr k8s.io/utils/trace -# knative.dev/hack v0.0.0-20260415132636-9909d690ab4d +# knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 ## explicit; go 1.24 knative.dev/hack -# knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718 +# knative.dev/pkg v0.0.0-20260415140041-388556d5c488 ## explicit; go 1.25.0 knative.dev/pkg/apis knative.dev/pkg/apis/duck