Skip to content

Commit

Permalink
Bump minimum version to go 1.21.0 (open-telemetry#32451)
Browse files Browse the repository at this point in the history
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->

We currently use `go 1.21` in all go.mod files, this PR changes all
go.mod files to include the minor version by using `go 1.21.0`. It seems
that using the minor version is recommended by the Go project:
golang/go#62278. One of the dependencies in
collector-contrib also uses `go 1.21.0`, so this will need to be updated
eventually anyways: https://github.com/cilium/ebpf/blob/main/go.mod#L3.

**Link to tracking Issue:** <Issue number if applicable>

**Testing:** <Describe what testing was performed and which tests were
added.>

**Documentation:** <Describe the documentation added.>

---------

Co-authored-by: Antoine Toulme <antoine@toulme.name>
  • Loading branch information
2 people authored and rimitchell committed May 8, 2024
1 parent dab64fa commit 8724a68
Show file tree
Hide file tree
Showing 270 changed files with 287 additions and 269 deletions.
14 changes: 14 additions & 0 deletions .chloggen/go-1.21.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: breaking
changelog: [api]

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

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Bump minimum version to go 1.21.0

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [32451]
2 changes: 1 addition & 1 deletion Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ govulncheck: $(GOVULNCHECK)
.PHONY: tidy
tidy:
rm -fr go.sum
$(GOCMD) mod tidy -compat=1.21
$(GOCMD) mod tidy -compat=1.21.0

.PHONY: misspell
misspell: $(TOOLS_BIN_DIR)/misspell
Expand Down
2 changes: 1 addition & 1 deletion cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/30187
module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/configschema

go 1.21
go 1.21.0

require (
github.com/fatih/structtag v1.2.0
Expand Down
2 changes: 1 addition & 1 deletion cmd/githubgen/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/githubgen

go 1.21
go 1.21.0

require (
github.com/google/go-github/v61 v61.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.21
go 1.21.0

require (
github.com/cenkalti/backoff/v4 v4.3.0
Expand Down
4 changes: 3 additions & 1 deletion cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/otelcontribcol

go 1.21
go 1.21.0

toolchain go1.21.9

require (
github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector v0.98.0
Expand Down
4 changes: 3 additions & 1 deletion cmd/oteltestbedcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/oteltestbedcol

go 1.21
go 1.21.0

toolchain go1.21.9

require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter v0.98.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.21
go 1.21.0

require (
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
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.21
go 1.21.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen v0.98.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.21
go 1.21.0

require (
github.com/aws/aws-sdk-go-v2 v1.26.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.21
go 1.21.0

require (
github.com/aws/aws-sdk-go-v2 v1.26.1
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.21
go 1.21.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.98.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.21
go 1.21.0

require (
github.com/DataDog/datadog-agent/pkg/proto v0.52.1-0.20240321095122-a3c5dbb936ae
Expand Down
2 changes: 1 addition & 1 deletion connector/exceptionsconnector/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/exceptionsconnector

go 1.21
go 1.21.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.98.0
Expand Down
2 changes: 1 addition & 1 deletion connector/failoverconnector/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/failoverconnector

go 1.21
go 1.21.0

require (
github.com/stretchr/testify v1.9.0
Expand Down
2 changes: 1 addition & 1 deletion connector/grafanacloudconnector/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/grafanacloudconnector

go 1.21
go 1.21.0

require (
github.com/stretchr/testify v1.9.0
Expand Down
2 changes: 1 addition & 1 deletion connector/routingconnector/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/routingconnector

go 1.21
go 1.21.0

require (
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.98.0
Expand Down
2 changes: 1 addition & 1 deletion connector/servicegraphconnector/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/servicegraphconnector

go 1.21
go 1.21.0

require (
github.com/stretchr/testify v1.9.0
Expand Down
2 changes: 1 addition & 1 deletion connector/spanmetricsconnector/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/spanmetricsconnector

go 1.21
go 1.21.0

require (
github.com/hashicorp/golang-lru v1.0.2
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/client/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/examples/demo/client

go 1.21
go 1.21.0

require (
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/server/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/examples/demo/server

go 1.21
go 1.21.0

require (
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/alertmanagerexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alertmanagerexporter

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

require (
github.com/aliyun/aliyun-log-go-sdk v0.1.72
Expand Down
2 changes: 1 addition & 1 deletion exporter/awscloudwatchlogsexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

require (
github.com/Azure/azure-kusto-go v0.15.2
Expand Down
2 changes: 1 addition & 1 deletion exporter/azuremonitorexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter

go 1.21
go 1.21.0

require (
github.com/microsoft/ApplicationInsights-Go v0.4.4
Expand Down
2 changes: 1 addition & 1 deletion exporter/carbonexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

require (
github.com/gocql/gocql v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/clickhouseexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/clickhouseexporter

go 1.21
go 1.21.0

require (
github.com/ClickHouse/clickhouse-go/v2 v2.23.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/coralogixexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/coralogixexporter

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

require (
github.com/DataDog/agent-payload/v5 v5.0.111
Expand Down
2 changes: 1 addition & 1 deletion exporter/datadogexporter/integrationtest/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter/integrationtest

go 1.21
go 1.21.0

require (
github.com/DataDog/datadog-agent/pkg/proto v0.52.1-0.20240321095122-a3c5dbb936ae
Expand Down
2 changes: 1 addition & 1 deletion exporter/datasetexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datasetexporter

go 1.21
go 1.21.0

require (
github.com/google/uuid v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/elasticsearchexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

require (
github.com/elastic/go-docappender v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/fileexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter

go 1.21
go 1.21.0

require (
github.com/hashicorp/golang-lru/v2 v2.0.7
Expand Down
2 changes: 1 addition & 1 deletion exporter/googlecloudexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudexporter

go 1.21
go 1.21.0

require (
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector v0.46.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/googlecloudpubsubexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudpubsubexporter

go 1.21
go 1.21.0

require (
cloud.google.com/go/pubsub v1.37.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/googlemanagedprometheusexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlemanagedprometheusexporter

go 1.21
go 1.21.0

require (
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/collector v0.46.0
Expand Down
2 changes: 1 addition & 1 deletion exporter/honeycombmarkerexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/honeycombmarkerexporter

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

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

go 1.21
go 1.21.0

require (
github.com/IBM/sarama v1.43.1
Expand Down
2 changes: 1 addition & 1 deletion exporter/kineticaexporter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kineticaexporter

go 1.21
go 1.21.0

require (
github.com/google/uuid v1.6.0
Expand Down
Loading

0 comments on commit 8724a68

Please sign in to comment.