diff --git a/go.mod b/go.mod index 80e0243a..e9ed8271 100644 --- a/go.mod +++ b/go.mod @@ -14,8 +14,8 @@ require ( k8s.io/client-go v0.35.3 knative.dev/client/pkg v0.0.0-20260415023934-20c8c9c714a8 knative.dev/eventing-kafka-broker v0.48.1-0.20260415134139-4ac20e87c15c - knative.dev/hack v0.0.0-20260415132636-9909d690ab4d - knative.dev/pkg v0.0.0-20260415140041-388556d5c488 + knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 + knative.dev/pkg v0.0.0-20260416015135-a395c1078b3d ) require ( diff --git a/go.sum b/go.sum index a78169a7..e0111506 100644 --- a/go.sum +++ b/go.sum @@ -301,12 +301,12 @@ knative.dev/eventing v0.48.1-0.20260414191034-3b3ea1d037e6 h1:maXR76gTo6zpNjZOir knative.dev/eventing v0.48.1-0.20260414191034-3b3ea1d037e6/go.mod h1:Y3FYNf5gNCIuqv+NzUAmqfbHJ8n+TxXSsZoV/20jfV0= knative.dev/eventing-kafka-broker v0.48.1-0.20260415134139-4ac20e87c15c h1:1QGM8J5ayBARx0VVHKHPLEtunYJlMGbaEK91LAid7cY= knative.dev/eventing-kafka-broker v0.48.1-0.20260415134139-4ac20e87c15c/go.mod h1:dxBghJ01WqOaMq5a3RAPGLCPWkwjZ4jRpCsZS42Eovw= -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/hack v0.0.0-20260415233235-54d1312ccc91 h1:YkboMEJ48h7DxRQSPe2SePm1yKK0YYgrsQW5Mmc0SEk= +knative.dev/hack v0.0.0-20260415233235-54d1312ccc91/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0= knative.dev/networking v0.0.0-20260414015937-f29b24983488 h1:OZfg130Kbf1bibhmLITAVdu2S0P2y0utBc74SgakzcQ= knative.dev/networking v0.0.0-20260414015937-f29b24983488/go.mod h1:hEhUDqidhueU6J/OXW0K9peQh8wIvFvIWTSHL/611og= -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= +knative.dev/pkg v0.0.0-20260416015135-a395c1078b3d h1:u9tHGBMUh1CYgZOdIBxeXpjvEPNIXT/rCjWVFUtzzs8= +knative.dev/pkg v0.0.0-20260416015135-a395c1078b3d/go.mod h1:SvS4U6mNzjdSvasGVgnuox9eKsG9INWroDcpBo0wFnE= knative.dev/serving v0.48.1-0.20260414185134-ed8b5055a09c h1:mfYQzcnAJ2OfUq+aaIkqmU1uKa4id1C7+TF/Ry/uYF0= knative.dev/serving v0.48.1-0.20260414185134-ed8b5055a09c/go.mod h1:P60pzf3AwCuySGeD/rviwvWixfZBgyTeQJJkZRycRkw= sigs.k8s.io/gateway-api v1.1.0 h1:DsLDXCi6jR+Xz8/xd0Z1PYl2Pn0TyaFMOPPZIj4inDM= diff --git a/vendor/knative.dev/hack/e2e-tests.sh b/vendor/knative.dev/hack/e2e-tests.sh index 331511cc..426c1cd9 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 e74b839e..db364ed8 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 2dbe5a7a..6eb56679 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 34b9fcd1..20df73dd 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -924,7 +924,7 @@ knative.dev/eventing-kafka-broker/control-plane/pkg/apis/sources/v1beta1 knative.dev/eventing-kafka-broker/control-plane/pkg/client/clientset/versioned/scheme knative.dev/eventing-kafka-broker/control-plane/pkg/client/clientset/versioned/typed/sources/v1beta1 knative.dev/eventing-kafka-broker/control-plane/pkg/client/clientset/versioned/typed/sources/v1beta1/fake -# 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/networking v0.0.0-20260414015937-f29b24983488 @@ -934,7 +934,7 @@ knative.dev/networking/pkg/apis/networking/v1alpha1 knative.dev/networking/pkg/config knative.dev/networking/pkg/http/header knative.dev/networking/pkg/ingress -# knative.dev/pkg v0.0.0-20260415140041-388556d5c488 +# knative.dev/pkg v0.0.0-20260416015135-a395c1078b3d ## explicit; go 1.25.0 knative.dev/pkg/apis knative.dev/pkg/apis/duck