Skip to content

Commit c150c04

Browse files
committed
[release-1.18] Updated the hack lib to the lastest
1 parent d82e543 commit c150c04

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
k8s.io/code-generator v0.32.2
2323
knative.dev/caching v0.0.0-20250415164313-8f20a1163dbf
2424
knative.dev/eventing v0.45.4
25-
knative.dev/hack v0.0.0-20250331013814-c577ed9f7775
25+
knative.dev/hack v0.0.0-20251022160748-50b120a65f30
2626
knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883
2727
knative.dev/reconciler-test v0.0.0-20250415170512-23f86169156f
2828
knative.dev/serving v0.45.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,8 +1718,8 @@ knative.dev/caching v0.0.0-20250415164313-8f20a1163dbf h1:qQnKB6mx+beHzsoKU8aKrR
17181718
knative.dev/caching v0.0.0-20250415164313-8f20a1163dbf/go.mod h1:q8ma7YxJ8Dofr+5kf3qR72A/7Zxl9uqQlOdMwNgCXY4=
17191719
knative.dev/eventing v0.45.4 h1:M0HjsFipG6AD+ZMYRXqbSsQfBK4BXlFGEQcsCDlR9mk=
17201720
knative.dev/eventing v0.45.4/go.mod h1:Fz5VjV/vWVN93UfTX3lzc+uFrvJ9wxiiKrRIPhQxoj8=
1721-
knative.dev/hack v0.0.0-20250331013814-c577ed9f7775 h1:UstB8/aowofYFHjLyZdPh1K7qB9BCx+lP1WuiCspYRE=
1722-
knative.dev/hack v0.0.0-20250331013814-c577ed9f7775/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
1721+
knative.dev/hack v0.0.0-20251022160748-50b120a65f30 h1:4fzUJrTmIbqgttXMBuLFC7/m2p0146EM3h9Wn2pBm9U=
1722+
knative.dev/hack v0.0.0-20251022160748-50b120a65f30/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
17231723
knative.dev/networking v0.0.0-20250415164913-6268d931d247 h1:BQcW8ur+WAmj6GCpYHyUyWoaJWVTs/75W1EObUV/bdA=
17241724
knative.dev/networking v0.0.0-20250415164913-6268d931d247/go.mod h1:Y6OMRz/12RC8fzVa3gAB6K8BR415xbF4z35IAbdMHFc=
17251725
knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883 h1:UeOY7009M0EHwdyW3P35Fc1U6FJHzBrj6Gf370do8zY=

vendor/knative.dev/hack/infra-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ source "$(dirname "${BASH_SOURCE[0]:-$0}")/library.sh"
2121

2222
# Default Kubernetes version to use for GKE, if not overridden with
2323
# the `--cluster-version` parameter.
24-
readonly GKE_DEFAULT_CLUSTER_VERSION="1.31"
24+
readonly GKE_DEFAULT_CLUSTER_VERSION="1.32"
2525

2626
# Dumps the k8s api server metrics. Spins up a proxy, waits a little bit and
2727
# dumps the metrics to ${ARTIFACTS}/k8s.metrics.txt

vendor/knative.dev/hack/library.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ function report_go_test() {
588588
logfile="${logfile/.xml/.jsonl}"
589589
echo "Running go test with args: ${go_test_args[*]}"
590590
local gotest_retcode=0
591-
go_run gotest.tools/gotestsum@v1.11.0 \
591+
go_run gotest.tools/gotestsum@v1.13.0 \
592592
--format "${GO_TEST_VERBOSITY:-testname}" \
593593
--junitfile "${xml}" \
594594
--junitfile-testsuite-name relative \
@@ -681,7 +681,7 @@ function start_knative_eventing_extension() {
681681
# Parameters: $1 - tool package for go run.
682682
# $2..$n - parameters passed to the tool.
683683
function go_run() {
684-
local package
684+
local package gotoolchain
685685
package="$1"
686686
if [[ "$package" != *@* ]]; then
687687
abort 'Package for "go_run" needs to have @version'
@@ -696,6 +696,11 @@ function go_run() {
696696
GORUN_PATH="$(mktemp -t -d -u gopath.XXXXXXXX)"
697697
fi
698698
export GORUN_PATH
699+
gotoolchain="$(go env GOTOOLCHAIN)"
700+
if [[ "$package" == knative.dev/toolbox/* ]]; then
701+
gotoolchain=auto
702+
fi
703+
GOTOOLCHAIN="${gotoolchain}" \
699704
GOPATH="${GORUN_PATH}" \
700705
GOFLAGS='' \
701706
go run "$package" "$@"

vendor/knative.dev/hack/presubmit-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function __build_test_runner_for_module() {
141141
# Don't merge these two lines, or return code will always be 0.
142142
# Get all build tags in go code (ignore /vendor, /hack and /third_party)
143143
local tags
144-
tags="$(go run knative.dev/toolbox/go-ls-tags@latest --joiner=,)"
144+
tags="$(go_run knative.dev/toolbox/go-ls-tags@latest --joiner=,)"
145145
local go_pkg_dirs
146146
go_pkg_dirs="$(go list -tags "${tags}" ./...)" || return $?
147147
if [[ -z "${go_pkg_dirs}" ]]; then

vendor/knative.dev/hack/release.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,15 @@ function prepare_dot_release() {
219219
# Use the original tag (ie. potentially with a knative- prefix) when determining the last version commit sha
220220
local github_tag="$(gh_tool release list --json tagName --jq '.[].tagName' | grep "${last_version}")"
221221
local last_release_commit="$(git rev-list -n 1 "${github_tag}")"
222-
local last_release_commit_filtered="$(git rev-list --invert-grep --grep "\[skip-dot-release\]" -n 1 "${github_tag}")"
222+
local last_release_commit_filtered="$(git rev-list --invert-grep --grep '^(?!\s*>).*?\[skip-dot-release\]' -n 1 "${github_tag}")"
223223
local release_branch_commit="$(git rev-list -n 1 upstream/"${RELEASE_BRANCH}")"
224-
local release_branch_commit_filtered="$(git rev-list --invert-grep --grep "\[skip-dot-release\]" -n 1 upstream/"${RELEASE_BRANCH}")"
224+
local release_branch_commit_filtered="$(git rev-list --invert-grep --grep '^(?!\s*>).*?\[skip-dot-release\]' -n 1 upstream/"${RELEASE_BRANCH}")"
225+
225226
[[ -n "${last_release_commit}" ]] || abort "cannot get last release commit"
226227
[[ -n "${release_branch_commit}" ]] || abort "cannot get release branch last commit"
228+
[[ -n "${last_release_commit_filtered}" ]] || abort "cannot get filtered last release commit"
229+
[[ -n "${release_branch_commit_filtered}" ]] || abort "cannot get filtered release branch last commit"
230+
227231
echo "Version ${last_version} is at commit ${last_release_commit}. Comparing using ${last_release_commit_filtered}. If it is different is because commits with the [skip-dot-release] flag in their commit body are not being considered."
228232
echo "Branch ${RELEASE_BRANCH} is at commit ${release_branch_commit}. Comparing using ${release_branch_commit_filtered}. If it is different is because commits with the [skip-dot-release] flag in their commit body are not being considered."
229233
if [[ "${last_release_commit_filtered}" == "${release_branch_commit_filtered}" ]]; then

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ knative.dev/eventing/test/upgrade/prober/wathola/fetcher
15221522
knative.dev/eventing/test/upgrade/prober/wathola/forwarder
15231523
knative.dev/eventing/test/upgrade/prober/wathola/receiver
15241524
knative.dev/eventing/test/upgrade/prober/wathola/sender
1525-
# knative.dev/hack v0.0.0-20250331013814-c577ed9f7775
1525+
# knative.dev/hack v0.0.0-20251022160748-50b120a65f30
15261526
## explicit; go 1.21
15271527
knative.dev/hack
15281528
# knative.dev/networking v0.0.0-20250415164913-6268d931d247

0 commit comments

Comments
 (0)