Skip to content

Commit

Permalink
Update go version to 1.21 and testcontainers-go dependency to v0.29.1 (
Browse files Browse the repository at this point in the history
…#1136)

* Run go mod tidy everywhere and add doc changes

* updated go version to 1.21 and testcontainers-go dependency to v0.27.0

* updated go version to 1.21 and testcontainers-go dependency to v0.27.0

* Run go mod tidy within examples

* Update go version in CI

* Update testcontainers-go version to 0.29.1

* Update CHANGELOG.md

* Update docker example go.mod and go.sum

---------

Co-authored-by: Milind L <miluthra@confluent.io>
Co-authored-by: Milind L <milindl@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 27, 2024
1 parent a85eae1 commit cb2701e
Show file tree
Hide file tree
Showing 16 changed files with 4,177 additions and 6,130 deletions.
14 changes: 7 additions & 7 deletions .semaphore/semaphore.yml
Expand Up @@ -11,15 +11,15 @@ global_job_config:
commands:
- checkout
blocks:
- name: "Go 1.19 OSX bundled librdkafka"
- name: "go 1.21 OSX bundled librdkafka"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-macos-13-5-amd64
prologue:
commands:
- sem-version go 1.19
- sem-version go 1.21
- export GOPATH=$(go env GOPATH)
- export PATH="$PATH:$GOPATH/bin"
- export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig"
Expand All @@ -38,15 +38,15 @@ blocks:
- name: EXPECT_LINK_INFO
value: dynamic
commands_file: semaphore_commands.sh
- name: "Go 1.19 linux bundled librdkafka"
- name: "go 1.21 linux bundled librdkafka"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu20-04-amd64-2
prologue:
commands:
- sem-version go 1.19
- sem-version go 1.21
- export GOPATH=$(go env GOPATH)
- export PATH="$PATH:$GOPATH/bin"
- export PKG_CONFIG_PATH="$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig"
Expand All @@ -69,15 +69,15 @@ blocks:
- name: EXPECT_LINK_INFO
value: dynamic
commands_file: semaphore_integration_commands.sh
- name: "Go 1.19 linux arm64 bundled librdkafka"
- name: "go 1.21 linux arm64 bundled librdkafka"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu20-04-arm64-1
prologue:
commands:
- sem-version go 1.19
- sem-version go 1.21
- export GOPATH=$(go env GOPATH)
- export PATH="$PATH:$GOPATH/bin"
- export PKG_CONFIG_PATH="$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig"
Expand All @@ -100,7 +100,7 @@ blocks:
- name: EXPECT_LINK_INFO
value: dynamic
commands_file: semaphore_commands.sh
- name: "Go 1.19 Windows bundled librdkafka"
- name: "go 1.21 Windows bundled librdkafka"
dependencies: [ ]
task:
agent:
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,16 @@
# Confluent's Golang client for Apache Kafka

# v2.3.1

This is a maintenance release.

## Fixes

* The version of Go in go.mod has been changed from 1.17 to 1.21.
This is necessary to update test dependencies with security vulnerabilities.
Code using the library will still work with Go 1.17.
(#1136, @rzeijde).


# v2.3.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -133,7 +133,7 @@ for use with [Confluent Cloud](https://www.confluent.io/confluent-cloud/).
Getting Started
===============

Supports Go 1.17+ and librdkafka 2.2.0+.
Supports Go 1.17+ and librdkafka 2.3.0+.

Using Go Modules
----------------
Expand Down
2 changes: 1 addition & 1 deletion examples/docker_aws_lambda_example/go.mod
Expand Up @@ -2,7 +2,7 @@ module docker_example

require (
github.com/aws/aws-lambda-go v1.27.0
github.com/confluentinc/confluent-kafka-go v1.9.0 // indirect
github.com/confluentinc/confluent-kafka-go/v2 v2.3.0
)

go 1.14
2,478 changes: 2,478 additions & 0 deletions examples/docker_aws_lambda_example/go.sum

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions examples/go.mod
@@ -1,6 +1,8 @@
module github.com/confluentinc/confluent-kafka-go/examples/v2

go 1.17
go 1.21

toolchain go1.21.0

replace github.com/confluentinc/confluent-kafka-go/v2 => ../

Expand All @@ -9,23 +11,24 @@ require (
github.com/alecthomas/kingpin v2.2.6+incompatible
github.com/confluentinc/confluent-kafka-go/v2 v2.3.0
github.com/gdamore/tcell v1.4.0
google.golang.org/protobuf v1.30.0
google.golang.org/protobuf v1.33.0
)

require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/gdamore/encoding v1.0.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/heetch/avro v0.4.4 // indirect
github.com/iancoleman/orderedmap v0.0.0-20190318233801-ac98e3ecb4b0 // indirect
github.com/invopop/jsonschema v0.7.0 // indirect
github.com/jhump/protoreflect v1.14.1 // indirect
github.com/lucasb-eyer/go-colorful v1.0.3 // indirect
github.com/mattn/go-runewidth v0.0.7 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
google.golang.org/genproto v0.0.0-20230331144136-dcfb400f0633 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto v0.0.0-20240325203815-454cdb8f5daa // indirect
)

0 comments on commit cb2701e

Please sign in to comment.