Skip to content

Commit 9f6dc57

Browse files
upgrade to latest dependencies
bumping knative.dev/pkg 077dcf0...7da1174: > 7da1174 upgrade to latest dependencies (# 3281) > 2be9d56 Lock before iterating map so that code does not panic on concurrent write (# 3279) 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 <automation@knative.team>
1 parent 42402f9 commit 9f6dc57

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ require (
2222
k8s.io/code-generator v0.33.4
2323
knative.dev/caching v0.0.0-20250912163221-088caf3d1102
2424
knative.dev/eventing v0.46.6
25-
knative.dev/hack v0.0.0-20250902154142-af735b2738d6
26-
knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8
25+
knative.dev/hack v0.0.0-20251016122918-f2be520302e8
26+
knative.dev/pkg v0.0.0-20251022154045-7da1174b871b
2727
knative.dev/reconciler-test v0.0.0-20250912162922-67ad19295884
2828
knative.dev/serving v0.46.6
2929
sigs.k8s.io/yaml v1.6.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,12 +1740,12 @@ knative.dev/caching v0.0.0-20250912163221-088caf3d1102 h1:4FTw6bb06qI6e14jEtt2u/
17401740
knative.dev/caching v0.0.0-20250912163221-088caf3d1102/go.mod h1:dpaqsKYjeuBAkTWxVg8oo8ZK6SvPmvl5ri9DxUyQyfg=
17411741
knative.dev/eventing v0.46.6 h1:8htZletYsoC9rXDz4lbtsgGAAPc95CTpcV9jmACyRqA=
17421742
knative.dev/eventing v0.46.6/go.mod h1:dIWODSwvwagsvXxcsBiOtaL3Zr2svaegjpCvW0IfBFk=
1743-
knative.dev/hack v0.0.0-20250902154142-af735b2738d6 h1:JYZgO9bni32T+BB5v6WpeRFm1hjj+EypBLZCk6HZBt0=
1744-
knative.dev/hack v0.0.0-20250902154142-af735b2738d6/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
1743+
knative.dev/hack v0.0.0-20251016122918-f2be520302e8 h1:UQGRZ6nsBfzVGmSQYSN2b/aixYy8FJ+fpuI2KJGLBGo=
1744+
knative.dev/hack v0.0.0-20251016122918-f2be520302e8/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
17451745
knative.dev/networking v0.0.0-20250902160145-7dad473f6351 h1:Gv/UqbN0AK+ORoT5e2Kg+3+uMW/y9CCdhpXKxYaVV6k=
17461746
knative.dev/networking v0.0.0-20250902160145-7dad473f6351/go.mod h1:P/fAhhVDgmLt1ugFX8vBvdSDiUOw2P4SGcjbzoZ02Xw=
1747-
knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8 h1:n0BMHXIem9MyDkK4vfA4Vzdxaf1e+EeLJ6k+8exCjjI=
1748-
knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8/go.mod h1:a1amDzo4YIUNuGeDgEz/uDHs5MQVYI1DXnRnEpWCAts=
1747+
knative.dev/pkg v0.0.0-20251022154045-7da1174b871b h1:FGFKGId+JPrKdX9PG0tNI4ePWqmEdTNiIOw2zsiPLpo=
1748+
knative.dev/pkg v0.0.0-20251022154045-7da1174b871b/go.mod h1:EagZcIVpB9m/bktnIVJM+MvgyXi9q25a8WpCCWULJUY=
17491749
knative.dev/reconciler-test v0.0.0-20250912162922-67ad19295884 h1:o+aMyv+92MK4B9BeXv3qAsSQRyO1Qx/HxggV+1aWh8Q=
17501750
knative.dev/reconciler-test v0.0.0-20250912162922-67ad19295884/go.mod h1:3BN2+QgyAHpbKEKephULEVNYyUsqx1QK/ALGOZhliTs=
17511751
knative.dev/serving v0.46.6 h1:jmVF560qnepNBG69VEbNRtknGFwZtGEyR1QSlNuoKmk=

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/knative.dev/pkg/controller/queue_metrics.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ func (m *queueMetrics) updateUnfinishedWork() {
121121
// doesn't seem to have non-hacky ways to reset the summary metrics.
122122
var total float64
123123
var oldest float64
124+
125+
m.mu.Lock()
126+
defer m.mu.Unlock()
127+
124128
for _, t := range m.processingStartTimes {
125129
age := m.sinceInSeconds(t)
126130
total += age

vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ knative.dev/eventing/test/upgrade/prober/wathola/fetcher
15851585
knative.dev/eventing/test/upgrade/prober/wathola/forwarder
15861586
knative.dev/eventing/test/upgrade/prober/wathola/receiver
15871587
knative.dev/eventing/test/upgrade/prober/wathola/sender
1588-
# knative.dev/hack v0.0.0-20250902154142-af735b2738d6
1588+
# knative.dev/hack v0.0.0-20251016122918-f2be520302e8
15891589
## explicit; go 1.21
15901590
knative.dev/hack
15911591
# knative.dev/networking v0.0.0-20250902160145-7dad473f6351
@@ -1605,7 +1605,7 @@ knative.dev/networking/pkg/http/proxy
16051605
knative.dev/networking/pkg/http/stats
16061606
knative.dev/networking/pkg/ingress
16071607
knative.dev/networking/pkg/k8s
1608-
# knative.dev/pkg v0.0.0-20250909011231-077dcf0d00e8
1608+
# knative.dev/pkg v0.0.0-20251022154045-7da1174b871b
16091609
## explicit; go 1.24.0
16101610
knative.dev/pkg/apiextensions/storageversion
16111611
knative.dev/pkg/apiextensions/storageversion/cmd/migrate

0 commit comments

Comments
 (0)