Skip to content

Commit b7ff1d4

Browse files
authored
build: upgrade Go toolchain to 1.26 (#394)
Move the project to Go 1.26 and upgrade the dependencies that require or benefit from the newer toolchain. The module directive is set to `go 1.26.0`, which represents the Go 1.26 language/toolchain requirement, whereas CI uses the exact Go 1.26.1 release. The dependabot patch (#392) is intentionally decoupled: - The first patch (#393) provides a dependency update compatible with the current Go 1.25 CI. - This patch (#394) introduces the deliberate Go 1.26 toolchain update and its required CI/container changes. Signed-off-by: Aritra Basu <aritrbas+gh@cisco.com>
1 parent 5d7a4b0 commit b7ff1d4

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
name: "Check go.mod"
4141
strategy:
4242
matrix:
43-
go: [ '1.25' ]
43+
go: [ '1.26.1' ]
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: "Checkout"
@@ -66,7 +66,7 @@ jobs:
6666
name: "Check generated binapi"
6767
strategy:
6868
matrix:
69-
go: [ '1.25' ]
69+
go: [ '1.26.1' ]
7070
env:
7171
VERSION: v0.12.0
7272
runs-on: ubuntu-latest
@@ -90,7 +90,7 @@ jobs:
9090
name: "Build and test"
9191
strategy:
9292
matrix:
93-
go: [ '1.25' ]
93+
go: [ '1.26.1' ]
9494
os: [ ubuntu-latest ]
9595
runs-on: ${{ matrix.os }}
9696
steps:
@@ -123,7 +123,7 @@ jobs:
123123
name: "GolangCI"
124124
strategy:
125125
matrix:
126-
go: [ '1.25' ]
126+
go: [ '1.26.1' ]
127127
runs-on: ubuntu-latest
128128
permissions:
129129
contents: read

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: "Setup Go"
2727
uses: actions/setup-go@v7
2828
with:
29-
go-version: '1.25'
29+
go-version: '1.26.1'
3030

3131
- name: "Download Syft"
3232
uses: anchore/sbom-action/download-syft@v0 #v0.15.10

‎.github/workflows/test.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: "Setup Go"
3939
uses: actions/setup-go@v7
4040
with:
41-
go-version: '1.25'
41+
go-version: '1.26.1'
4242

4343
- name: "Run Tests"
4444
run: |

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN set -eux; \
3636
rm -rf /var/lib/apt/lists/*; \
3737
rm -rf /pkg
3838

39-
FROM golang:1.25-alpine3.22 as binapi-generator
39+
FROM golang:1.26.1-alpine3.22 as binapi-generator
4040

4141
ENV GO111MODULE=on
4242
ENV CGO_ENABLED=0

‎extras/test/build/Dockerfile.extras‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN set -eux; \
99
rm gotestsum.tar.gz;
1010

1111
# Install Go
12-
ENV GOLANG_VERSION=1.25.3
12+
ENV GOLANG_VERSION=1.26.1
1313

1414
RUN set -eux; \
1515
dpkgArch="$(dpkg --print-architecture)"; \

‎go.mod‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module go.fd.io/govpp
22

3-
go 1.25.0
3+
go 1.26.0
44

55
require (
66
github.com/bennyscetbun/jsongo v1.2.4
7-
github.com/docker/cli v29.7.2+incompatible
7+
github.com/docker/cli v29.8.0+incompatible
88
github.com/fsnotify/fsnotify v1.10.1
99
github.com/ftrvxmtrx/fd v0.0.0-20150925145434-c6d800382fff
1010
github.com/gookit/color v1.6.1
@@ -17,7 +17,7 @@ require (
1717
github.com/sirupsen/logrus v1.10.2
1818
github.com/spf13/cobra v1.10.2
1919
github.com/spf13/pflag v1.0.10
20-
golang.org/x/text v0.41.0
20+
golang.org/x/text v0.42.0
2121
gopkg.in/yaml.v3 v3.0.1
2222
)
2323

‎go.sum‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
1616
github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
1717
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1818
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
19-
github.com/docker/cli v29.7.2+incompatible h1:dlkwallR8XqfeVnA2ELEhdwvb4lsSwuB4IgsG8Q9cLY=
20-
github.com/docker/cli v29.7.2+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
19+
github.com/docker/cli v29.8.0+incompatible h1:ih0c2jq/nN7QfES8zIfwSzIhRScjs4ehER+kZ60aeSk=
20+
github.com/docker/cli v29.8.0+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
2121
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
2222
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
2323
github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g=
@@ -91,8 +91,8 @@ golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBc
9191
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
9292
golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
9393
golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
94-
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
95-
golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
94+
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
95+
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
9696
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
9797
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
9898
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

‎test/build/Dockerfile.integration‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN set -eux; \
99
rm gotestsum.tar.gz;
1010

1111
# Install Go
12-
ENV GOLANG_VERSION 1.25.3
12+
ENV GOLANG_VERSION 1.26.1
1313

1414
RUN set -eux; \
1515
dpkgArch="$(dpkg --print-architecture)"; \

0 commit comments

Comments
 (0)