Skip to content

Commit 3ec117e

Browse files
committed
bump knative.dev/hack
1 parent 612af4c commit 3ec117e

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ require (
3636
k8s.io/client-go v0.32.2
3737
k8s.io/utils v0.0.0-20241210054802-24370beab758
3838
knative.dev/eventing v0.45.0
39-
knative.dev/hack v0.0.0-20250331013814-c577ed9f7775
39+
knative.dev/hack v0.0.0-20251016122918-6d3155ba6dab
4040
knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883
4141
knative.dev/reconciler-test v0.0.0-20250415170512-23f86169156f
4242
sigs.k8s.io/controller-runtime v0.19.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,8 @@ k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJ
15611561
k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
15621562
knative.dev/eventing v0.45.0 h1:LwNmhsw94isfEFOtjN1tpcduD5EzTKo4nbenTxSLd4o=
15631563
knative.dev/eventing v0.45.0/go.mod h1:Fz5VjV/vWVN93UfTX3lzc+uFrvJ9wxiiKrRIPhQxoj8=
1564-
knative.dev/hack v0.0.0-20250331013814-c577ed9f7775 h1:UstB8/aowofYFHjLyZdPh1K7qB9BCx+lP1WuiCspYRE=
1565-
knative.dev/hack v0.0.0-20250331013814-c577ed9f7775/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
1564+
knative.dev/hack v0.0.0-20251016122918-6d3155ba6dab h1:GaY+J9tqA01vtkoKBv0afNmXf4McHVXmzKcNpnv3b8g=
1565+
knative.dev/hack v0.0.0-20251016122918-6d3155ba6dab/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
15661566
knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883 h1:UeOY7009M0EHwdyW3P35Fc1U6FJHzBrj6Gf370do8zY=
15671567
knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883/go.mod h1:ptwLYr04MAyeoRvhnhhz0FFkVZTdYJV2QWnw9sZyFSM=
15681568
knative.dev/reconciler-test v0.0.0-20250415170512-23f86169156f h1:4JZHD997Yav2K6JJU93sjxvcPXNHVY4lC1dWhzyeBXg=

vendor/knative.dev/hack/library.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ knative.dev/eventing/test/upgrade/prober/wathola/fetcher
14131413
knative.dev/eventing/test/upgrade/prober/wathola/forwarder
14141414
knative.dev/eventing/test/upgrade/prober/wathola/receiver
14151415
knative.dev/eventing/test/upgrade/prober/wathola/sender
1416-
# knative.dev/hack v0.0.0-20250331013814-c577ed9f7775
1416+
# knative.dev/hack v0.0.0-20251016122918-6d3155ba6dab
14171417
## explicit; go 1.21
14181418
knative.dev/hack
14191419
# knative.dev/pkg v0.0.0-20250415155312-ed3e2158b883

0 commit comments

Comments
 (0)