Skip to content

Commit a53ddd7

Browse files
committed
chore: migrate to go1.24
1 parent 78093ed commit a53ddd7

25 files changed

+43
-51
lines changed

.github/workflows/acceptance-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install Go
5353
uses: actions/setup-go@v5
5454
with:
55-
go-version: 1.23.5
55+
go-version: 1.24.0
5656
- name: Run Acceptance Tests
5757
run: go test -v ./internal/services/${{ matrix.products }} -timeout=2h
5858
env:
@@ -76,7 +76,7 @@ jobs:
7676
- name: Install Go
7777
uses: actions/setup-go@v5
7878
with:
79-
go-version: 1.23.5
79+
go-version: 1.24.0
8080
- name: Install Terraform
8181
uses: hashicorp/setup-terraform@v3
8282
- name: Run scwconfig tests

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- docs/**
1313

1414
env:
15-
GO_VERSION: "1.23.5"
15+
GO_VERSION: "1.24.0"
1616
GO111MODULE: on
1717

1818
jobs:

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install Go
5454
uses: actions/setup-go@v5
5555
with:
56-
go-version: 1.23.5
56+
go-version: 1.24.0
5757
- name: Run Acceptance Tests
5858
run: go test -v ./internal/services/${{ matrix.products }} -timeout=4h
5959
env:
@@ -105,7 +105,7 @@ jobs:
105105
- name: Install Go
106106
uses: actions/setup-go@v5
107107
with:
108-
go-version: 1.23.5
108+
go-version: 1.24.0
109109
- name: Install Terraform
110110
uses: hashicorp/setup-terraform@v3
111111
- name: Run sweepers

.github/workflows/purge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Install Go
1313
uses: actions/setup-go@v5
1414
with:
15-
go-version: 1.23.5
15+
go-version: 1.24.0
1616
- name: Install Terraform
1717
uses: hashicorp/setup-terraform@v3
1818
- name: Run sweepers

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Go
2929
uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.23.5
31+
go-version: 1.24.0
3232

3333
- name: Import GPG key
3434
id: import_gpg

.github/workflows/tfproviderlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-go@v5
1515
with:
16-
go-version: 1.23.5
16+
go-version: 1.24.0
1717
- name: Install tfproviderlint
1818
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
1919
- name: Run tfproviderlint
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.23.5
28+
go-version: 1.24.0
2929
- uses: hashicorp/setup-terraform@v3
3030
- run: go install github.com/bflad/tfproviderdocs@latest
3131
- run: make tfproviderdocs

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Go
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.23.5
19+
go-version: 1.24.0
2020
- name: Install Terraform
2121
uses: hashicorp/setup-terraform@v3
2222
- name: Build binaries

go.mod

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

3-
go 1.23.5
3+
go 1.24.0
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.36.0

internal/acctest/acctest.go

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

33
import (
4-
"context"
54
"os"
65
"strconv"
76
"strings"
@@ -27,7 +26,7 @@ type TestTools struct {
2726
func NewTestTools(t *testing.T) *TestTools {
2827
t.Helper()
2928

30-
ctx := context.Background()
29+
ctx := t.Context()
3130

3231
folder, err := os.Getwd()
3332
if err != nil {

internal/provider/provider_test.go

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

33
import (
4-
"context"
54
"fmt"
65
"testing"
76

@@ -20,7 +19,7 @@ func TestAccProvider_InstanceIPZones(t *testing.T) {
2019
tt := acctest.NewTestTools(t)
2120
defer tt.Cleanup()
2221

23-
ctx := context.Background()
22+
ctx := t.Context()
2423

2524
resource.ParallelTest(t, resource.TestCase{
2625
PreCheck: func() { acctest.PreCheck(t) },
@@ -78,7 +77,7 @@ func TestAccProvider_SSHKeys(t *testing.T) {
7877
SSHKeyName := "TestAccScalewayProvider_SSHKeys"
7978
SSHKey := "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEEYrzDOZmhItdKaDAEqJQ4ORS2GyBMtBozYsK5kiXXX [email protected]"
8079

81-
ctx := context.Background()
80+
ctx := t.Context()
8281

8382
resource.ParallelTest(t, resource.TestCase{
8483
PreCheck: func() { acctest.PreCheck(t) },

0 commit comments

Comments
 (0)