Skip to content

Commit

Permalink
bump minimum supported go version to 1.23 (open-telemetry#37875)
Browse files Browse the repository at this point in the history
With the release of 1.24, we need to bump the tested versions.

Fixes
open-telemetry#37865
Fixes
open-telemetry#35722

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
  • Loading branch information
codeboten authored Feb 12, 2025
1 parent b380b78 commit cbdb3a7
Show file tree
Hide file tree
Showing 319 changed files with 361 additions and 338 deletions.
25 changes: 25 additions & 0 deletions .chloggen/codeboten_1.24.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: breaking

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: all

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Added support for go1.24, bumped minimum version to 1.23

# One or more tracking issues or pull requests related to the change
issues: [37875]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:

# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: []
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.12"
go-version: "~1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.12"
go-version: "~1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.12"
go-version: "~1.23.6"
cache: false
- name: Install Tools
if: steps.go-cache.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -177,7 +177,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: ["1.23.0", "1.22.12"] # 1.20 is interpreted as 1.2 without quotes
go-version: ["~1.24", "~1.23"] # 1.20 is interpreted as 1.2 without quotes
runner: [ubuntu-24.04]
group:
- receiver-0
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -395,7 +395,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -422,7 +422,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -494,7 +494,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -544,7 +544,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Mkdir bin and dist
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-codeowners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false

- name: Cache Go Tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false

# Initializes the CodeQL tools for scanning.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ~1.22.12
go-version: "~1.23.6"
cache: false
- name: Cache Go
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
path: opentelemetry-collector-contrib
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Prepare release for contrib
working-directory: opentelemetry-collector-contrib
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prometheus-compliance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
path: opentelemetry-collector-contrib
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scoped-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false

- name: Try to restore go-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/telemetrygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tidy-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v5
with:
go-version: "1.22.12"
go-version: "1.23.6"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion cmd/githubgen/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Deprecated: use https://github.com/open-telemetry/opentelemetry-go-build-tools/tree/main/githubgen
module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/githubgen

go 1.22.0
go 1.23.0

require (
github.com/google/go-github/v68 v68.0.0
Expand Down
2 changes: 1 addition & 1 deletion cmd/opampsupervisor/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor

go 1.22.0
go 1.23.0

require (
github.com/cenkalti/backoff/v4 v4.3.0
Expand Down
2 changes: 1 addition & 1 deletion cmd/telemetrygen/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen

go 1.22.7
go 1.23.0

require (
github.com/spf13/cobra v1.8.1
Expand Down
2 changes: 1 addition & 1 deletion cmd/telemetrygen/internal/e2etest/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen/internal/e2etest

go 1.22.7
go 1.23.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen v0.119.0
Expand Down
2 changes: 1 addition & 1 deletion confmap/provider/aesprovider/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/confmap/provider/aesprovider

go 1.22.0
go 1.23.0

require (
github.com/stretchr/testify v1.10.0
Expand Down
2 changes: 1 addition & 1 deletion confmap/provider/s3provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/confmap/provider/s3provider

go 1.22.0
go 1.23.0

require (
github.com/aws/aws-sdk-go-v2 v1.36.1
Expand Down
2 changes: 1 addition & 1 deletion confmap/provider/secretsmanagerprovider/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/confmap/provider/secretsmanagerprovider

go 1.22.0
go 1.23.0

require (
github.com/aws/aws-sdk-go-v2/config v1.29.6
Expand Down
2 changes: 1 addition & 1 deletion connector/countconnector/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

go 1.22.0
go 1.23.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.119.0
Expand Down
2 changes: 1 addition & 1 deletion connector/datadogconnector/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/connector/datadogconnector

go 1.22.0
go 1.23.0

require (
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/metricsclient v0.62.2
Expand Down
Loading

0 comments on commit cbdb3a7

Please sign in to comment.