Skip to content

Commit 57d78c2

Browse files
authored
bump go version to 1.22 (#2692)
* bump go * update staticheck * disable S1009 * bump github workflows
1 parent cdb86cd commit 57d78c2

File tree

10 files changed

+13
-12
lines changed

10 files changed

+13
-12
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/setup-go@v4
3131
with:
32-
go-version: 1.19.x
32+
go-version: 1.22.x
3333

3434
# Initializes the CodeQL tools for scanning.
3535
- name: Initialize CodeQL

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install Go
1919
uses: actions/setup-go@v4
2020
with:
21-
go-version: 1.19.x
21+
go-version: 1.22.x
2222

2323
- name: Build documentation
2424
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install Go
5353
uses: actions/setup-go@v4
5454
with:
55-
go-version: 1.19.x
55+
go-version: 1.22.x
5656
- id: pre_commit
5757
name: Run pre-commit
5858
if: github.event.action != 'closed' && github.event.pull_request.merged != true
@@ -81,7 +81,7 @@ jobs:
8181
test:
8282
strategy:
8383
matrix:
84-
go-version: [1.19.x, 1.20.x]
84+
go-version: [1.22.x, 1.23.x]
8585
go-build-tags: ["--tags=goccy_gojson", ""]
8686
platform: [ubuntu-latest]
8787
runs-on: ${{ matrix.platform }}
@@ -108,7 +108,7 @@ jobs:
108108
- name: Install Go
109109
uses: actions/setup-go@v4
110110
with:
111-
go-version: 1.19.x
111+
go-version: 1.22.x
112112
cache: true
113113
cache-dependency-path: tests/go.sum
114114
- name: Check examples

.github/workflows/test_integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install Go
6363
uses: actions/setup-go@v4
6464
with:
65-
go-version: 1.19.x
65+
go-version: 1.22.x
6666
cache: true
6767
cache-dependency-path: tests/go.sum
6868
- name: Run integration tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository contains a Go API client for the [Datadog API](https://docs.data
44

55
## Requirements
66

7-
- Go 1.19+
7+
- Go 1.22+
88

99
## Layout
1010

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// Requirements
66
//
7-
// • Go 1.19+
7+
// • Go 1.22+
88
//
99
// Layout
1010
//

go.mod

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

3-
go 1.19
3+
go 1.22
44

55
retract (
66
// Version used to retract v2.0.0 and v2.0.1. DO NOT USE.

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg
88
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
99
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
1010
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
11+
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
1112
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
1213
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
1314
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ fi
2424
# unfortunately there's no better way to fix this than change directory
2525
# this might get solved in Go 1.14: https://github.com/golang/go/issues/30515
2626
cd "$(mktemp -d)"
27-
GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@v0.4.3
27+
GO111MODULE=on go install honnef.co/go/tools/cmd/staticcheck@v0.5.0
2828
GO111MODULE=on go install gotest.tools/gotestsum@latest
2929
cd -
3030

31-
staticcheck ./api/...
31+
staticcheck -checks -SA1009 ./api/...
3232
go mod tidy
3333
go clean -testcache
3434

tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/DataDog/datadog-api-client-go/v2/tests
22

3-
go 1.19
3+
go 1.22
44

55
require (
66
github.com/DataDog/datadog-api-client-go/v2 v2.14.0

0 commit comments

Comments
 (0)