Skip to content

Commit fff585e

Browse files
MrAliasIonut Zailic
authored and
Ionut Zailic
committed
Support and test Go 1.22 (open-telemetry#5082)
* Update README * Update changelog * Update CI workflows * Update Dockerfiles * Update changelog entry PR number
1 parent 2dde79b commit fff585e

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
# backwards compatibility with the previous two minor releases and we
1515
# explicitly test our code for these versions so keeping this at prior
1616
# versions does not add value.
17-
DEFAULT_GO_VERSION: "~1.21.3"
17+
DEFAULT_GO_VERSION: "~1.22.0"
1818
jobs:
1919
lint:
2020
runs-on: ubuntu-latest
@@ -90,7 +90,7 @@ jobs:
9090
compatibility-test:
9191
strategy:
9292
matrix:
93-
go-version: ["~1.21.3", "~1.20.10"]
93+
go-version: ["~1.22.0", "~1.21.3", "~1.20.10"]
9494
os: [ubuntu-latest, macos-latest, windows-latest]
9595
# GitHub Actions does not support arm* architectures on default
9696
# runners. It is possible to acomplish this with a self-hosted runner

.github/workflows/create-dependabot-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Install Go
1414
uses: actions/setup-go@v5
1515
with:
16-
go-version: "~1.21.3"
16+
go-version: "~1.22.0"
1717
check-latest: true
1818
cache-dependency-path: "**/go.sum"
1919

.github/workflows/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
ref: ${{ github.head_ref }}
1414
- uses: actions/setup-go@v5
1515
with:
16-
go-version: "~1.21.3"
16+
go-version: "~1.22.0"
1717
check-latest: true
1818
cache-dependency-path: "**/go.sum"
1919
- uses: evantorrie/mott-the-tidier@v1-beta

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
88

99
## [Unreleased]
1010

11+
This release is the last to support [Go 1.20].
12+
The next release will require at least [Go 1.21].
13+
1114
### Added
1215

1316
- Add the new `go.opentelemetry.io/contrib/instrgen` package to provide auto-generated source code instrumentation. (#3068, #3108)
17+
- Support [Go 1.22]. (#5082)
1418

1519
### Removed
1620

@@ -990,6 +994,8 @@ First official tagged release of `contrib` repository.
990994
[0.7.0]: https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v0.7.0
991995
[0.6.1]: https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v0.6.1
992996

997+
[Go 1.22]: https://go.dev/doc/go1.22
998+
[Go 1.21]: https://go.dev/doc/go1.21
993999
[Go 1.20]: https://go.dev/doc/go1.20
9941000
[Go 1.19]: https://go.dev/doc/go1.19
9951001
[Go 1.18]: https://go.dev/doc/go1.18

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,19 @@ This project is tested on the following systems.
4949

5050
| OS | Go Version | Architecture |
5151
| ------- | ---------- | ------------ |
52+
| Ubuntu | 1.22 | amd64 |
5253
| Ubuntu | 1.21 | amd64 |
5354
| Ubuntu | 1.20 | amd64 |
55+
| Ubuntu | 1.22 | 386 |
5456
| Ubuntu | 1.21 | 386 |
5557
| Ubuntu | 1.20 | 386 |
58+
| MacOS | 1.22 | amd64 |
5659
| MacOS | 1.21 | amd64 |
5760
| MacOS | 1.20 | amd64 |
61+
| Windows | 1.22 | amd64 |
5862
| Windows | 1.21 | amd64 |
5963
| Windows | 1.20 | amd64 |
64+
| Windows | 1.22 | 386 |
6065
| Windows | 1.21 | 386 |
6166
| Windows | 1.20 | 386 |
6267

0 commit comments

Comments
 (0)