Skip to content

Commit cd16321

Browse files
Bump to go1.24
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
1 parent 5f35c88 commit cd16321

File tree

88 files changed

+284
-362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+284
-362
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'script/gcg/**'
1111

1212
env:
13-
GO_VERSION: '1.23'
13+
GO_VERSION: '1.24'
1414
CGO_ENABLED: 0
1515

1616
jobs:

.github/workflows/experimental.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- v*
88

99
env:
10-
GO_VERSION: '1.23'
10+
GO_VERSION: '1.24'
1111
CGO_ENABLED: 0
1212

1313
jobs:

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v*.*.*'
77

88
env:
9-
GO_VERSION: '1.23'
9+
GO_VERSION: '1.24'
1010
CGO_ENABLED: 0
1111
VERSION: ${{ github.ref_name }}
1212
TRAEFIKER_EMAIL: "traefiker@traefik.io"

.github/workflows/test-integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'script/gcg/**'
1111

1212
env:
13-
GO_VERSION: '1.23'
13+
GO_VERSION: '1.24'
1414
CGO_ENABLED: 0
1515

1616
jobs:

.github/workflows/test-unit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'script/gcg/**'
1111

1212
env:
13-
GO_VERSION: '1.23'
13+
GO_VERSION: '1.24'
1414

1515
jobs:
1616

.github/workflows/validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- '*'
77

88
env:
9-
GO_VERSION: '1.23'
9+
GO_VERSION: '1.24'
1010
GOLANGCI_LINT_VERSION: v2.0.2
1111
MISSPELL_VERSION: v0.6.0
1212

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/traefik/traefik/v2
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
github.com/BurntSushi/toml v1.5.0

pkg/api/handler_http_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package api
22

33
import (
4-
"context"
54
"encoding/json"
65
"fmt"
76
"io"
@@ -926,8 +925,8 @@ func TestHandler_HTTP(t *testing.T) {
926925
rtConf := &test.conf
927926
// To lazily initialize the Statuses.
928927
rtConf.PopulateUsedBy()
929-
rtConf.GetRoutersByEntryPoints(context.Background(), []string{"web"}, false)
930-
rtConf.GetRoutersByEntryPoints(context.Background(), []string{"web"}, true)
928+
rtConf.GetRoutersByEntryPoints(t.Context(), []string{"web"}, false)
929+
rtConf.GetRoutersByEntryPoints(t.Context(), []string{"web"}, true)
931930

932931
handler := New(static.Configuration{API: &static.API{}, Global: &static.Global{}}, rtConf)
933932
server := httptest.NewServer(handler.createRouter())

pkg/api/handler_tcp_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package api
22

33
import (
4-
"context"
54
"encoding/json"
65
"io"
76
"net/http"
@@ -797,7 +796,7 @@ func TestHandler_TCP(t *testing.T) {
797796
rtConf := &test.conf
798797
// To lazily initialize the Statuses.
799798
rtConf.PopulateUsedBy()
800-
rtConf.GetTCPRoutersByEntryPoints(context.Background(), []string{"web"})
799+
rtConf.GetTCPRoutersByEntryPoints(t.Context(), []string{"web"})
801800

802801
handler := New(static.Configuration{API: &static.API{}, Global: &static.Global{}}, rtConf)
803802
server := httptest.NewServer(handler.createRouter())

pkg/api/handler_udp_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package api
22

33
import (
4-
"context"
54
"encoding/json"
65
"io"
76
"net/http"
@@ -536,7 +535,7 @@ func TestHandler_UDP(t *testing.T) {
536535
rtConf := &test.conf
537536
// To lazily initialize the Statuses.
538537
rtConf.PopulateUsedBy()
539-
rtConf.GetUDPRoutersByEntryPoints(context.Background(), []string{"web"})
538+
rtConf.GetUDPRoutersByEntryPoints(t.Context(), []string{"web"})
540539

541540
handler := New(static.Configuration{API: &static.API{}, Global: &static.Global{}}, rtConf)
542541
server := httptest.NewServer(handler.createRouter())

0 commit comments

Comments
 (0)