Skip to content

Commit 1a30e2a

Browse files
upgrade to latest dependencies (#6467)
bumping knative.dev/hack af735b2...f2be520: > f2be520 [release-1.19] 🐛 Fix knative.dev/toolbox for older versions of Golang (# 444) Signed-off-by: Knative Automation <[email protected]>
1 parent 9649610 commit 1a30e2a

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
@@ -5,7 +5,7 @@ go 1.23.0
55
require (
66
github.com/google/go-github/v32 v32.1.0
77
gopkg.in/yaml.v2 v2.3.0
8-
knative.dev/hack v0.0.0-20250902154142-af735b2738d6
8+
knative.dev/hack v0.0.0-20251016122918-f2be520302e8
99
)
1010

1111
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8X
2323
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2424
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
2525
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
26-
knative.dev/hack v0.0.0-20250902154142-af735b2738d6 h1:JYZgO9bni32T+BB5v6WpeRFm1hjj+EypBLZCk6HZBt0=
27-
knative.dev/hack v0.0.0-20250902154142-af735b2738d6/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
26+
knative.dev/hack v0.0.0-20251016122918-f2be520302e8 h1:UQGRZ6nsBfzVGmSQYSN2b/aixYy8FJ+fpuI2KJGLBGo=
27+
knative.dev/hack v0.0.0-20251016122918-f2be520302e8/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=

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
@@ -22,7 +22,7 @@ golang.org/x/crypto/openpgp/s2k
2222
# gopkg.in/yaml.v2 v2.3.0
2323
## explicit
2424
gopkg.in/yaml.v2
25-
# knative.dev/hack v0.0.0-20250902154142-af735b2738d6
25+
# knative.dev/hack v0.0.0-20251016122918-f2be520302e8
2626
## explicit; go 1.21
2727
knative.dev/hack
2828
# go.opencensus.io => go.opencensus.io v0.20.2

0 commit comments

Comments
 (0)