Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
53 changes: 25 additions & 28 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/k8snetworkplumbingwg/whereabouts

go 1.24.2

toolchain go1.24.6
go 1.26.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== go directive =="
rg -n '^\s*go\s+[0-9]+\.[0-9]+(\.[0-9]+)?' go.mod

echo
echo "== GitHub Actions Go pins =="
rg -n -C2 'actions/setup-go|go-version|golang:' .github/workflows || true

echo
echo "== Dockerfile Go base image pins =="
fd -HI '^Dockerfile.*$' -t f | xargs -r rg -n -C1 'FROM\s+golang:' || true

echo
echo "== Makefile / scripts Go version pins =="
fd -HI '^(Makefile|.*\.mk|.*\.sh)$' -t f | xargs -r rg -n -C1 'GO_VERSION|GOLANG_VERSION|go1\.[0-9]+' || true

Repository: openshift/whereabouts-cni

Length of output: 1825


Update Dockerfiles to match go 1.26.0 requirement.

Dockerfile and Dockerfile.arm64 are both pinned to golang:1.24 but go.mod requires go 1.26.0. Update both Dockerfiles from FROM golang:1.24 to FROM golang:1.26 (or golang:1.26.0) to avoid build failures.

GitHub Actions workflows are correctly configured (they use go-version-file: go.mod and will pick up the version dynamically).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` at line 3, The Dockerfiles pin an older Go base image than go.mod
requires; update both Dockerfile and Dockerfile.arm64 by replacing their FROM
lines that reference golang:1.24 with golang:1.26 (or golang:1.26.0) so the
container build uses the same Go version as specified in go.mod; ensure no other
hardcoded go image tags remain and rebuild to verify compatibility.


require (
github.com/blang/semver v3.5.1+incompatible
Expand All @@ -15,32 +13,32 @@ require (
github.com/onsi/gomega v1.38.2
github.com/pkg/errors v0.9.1
gomodules.xyz/jsonpatch/v2 v2.5.0
k8s.io/api v0.34.1
k8s.io/apimachinery v0.34.1
k8s.io/client-go v0.34.1
k8s.io/code-generator v0.34.1
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912
k8s.io/api v0.36.0
k8s.io/apimachinery v0.36.0
k8s.io/client-go v0.36.0
k8s.io/code-generator v0.36.0
k8s.io/kube-openapi v0.0.0-20260317180543-43fb72c5454a
)

require github.com/go-co-op/gocron/v2 v2.16.6

require (
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
github.com/google/gnostic-models v0.7.0 // indirect
github.com/jonboulle/clockwork v0.5.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/vishvananda/netns v0.0.5 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.yaml.in/yaml/v2 v2.4.2 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/sync v0.16.0 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
k8s.io/gengo/v2 v2.0.0-20250604051438-85fd79dbfd9f // indirect
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
golang.org/x/sync v0.19.0 // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
)

require (
Expand All @@ -51,7 +49,6 @@ require (
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
Expand All @@ -60,21 +57,21 @@ require (
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/spf13/pflag v1.0.6 // indirect
golang.org/x/mod v0.27.0 // indirect
golang.org/x/net v0.43.0 // indirect
golang.org/x/oauth2 v0.27.0 // indirect
golang.org/x/sys v0.35.0 // indirect
golang.org/x/term v0.34.0 // indirect
golang.org/x/text v0.28.0 // indirect
github.com/spf13/pflag v1.0.9 // indirect
golang.org/x/mod v0.32.0 // indirect
golang.org/x/net v0.49.0 // indirect
golang.org/x/oauth2 v0.34.0 // indirect
golang.org/x/sys v0.40.0 // indirect
golang.org/x/term v0.39.0 // indirect
golang.org/x/text v0.33.0 // indirect
golang.org/x/time v0.14.0
golang.org/x/tools v0.36.0 // indirect
google.golang.org/protobuf v1.36.7 // indirect
golang.org/x/tools v0.41.0 // indirect
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.130.1
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397
k8s.io/klog/v2 v2.140.0
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2
sigs.k8s.io/yaml v1.6.0 // indirect
)

Expand Down
113 changes: 52 additions & 61 deletions go.sum

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions vendor/github.com/emicklei/go-restful/v3/.travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions vendor/github.com/emicklei/go-restful/v3/CHANGES.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/emicklei/go-restful/v3/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 47 additions & 3 deletions vendor/github.com/emicklei/go-restful/v3/curly.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 32 additions & 2 deletions vendor/github.com/emicklei/go-restful/v3/custom_verb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading