From 675cb128859ae123de07c911ab9e75e9a241238a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 10 May 2023 14:37:30 +0200 Subject: [PATCH] chore: use new version (v0.20.1) in modules and examples --- RELEASING.md | 7 ++++--- examples/bigtable/go.mod | 2 +- examples/cockroachdb/go.mod | 2 +- examples/consul/go.mod | 2 +- examples/datastore/go.mod | 2 +- examples/firestore/go.mod | 2 +- examples/mongodb/go.mod | 2 +- examples/nginx/go.mod | 2 +- examples/pubsub/go.mod | 2 +- examples/spanner/go.mod | 2 +- examples/toxiproxy/go.mod | 2 +- internal/version.go | 2 +- mkdocs.yml | 2 +- modules/compose/go.mod | 2 +- modules/couchbase/go.mod | 2 +- modules/localstack/go.mod | 2 +- modules/mysql/go.mod | 2 +- modules/neo4j/go.mod | 2 +- modules/postgres/go.mod | 2 +- modules/pulsar/go.mod | 2 +- modules/redis/go.mod | 2 +- modules/redpanda/go.mod | 2 +- modules/vault/go.mod | 2 +- scripts/release.sh | 1 + 24 files changed, 27 insertions(+), 25 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index e81ea7af0c..b433244e2e 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -25,9 +25,6 @@ Once the remote is properly set, please follow these steps: - The script will update the [mkdocs.yml](./mkdocks.yml) file, updating the `latest_version` field to the current version. - The script will update the [version.go](./internal/version.go) file, setting the next development version to the next **minor** version by default. For example, if the current version is `v0.18.0`, the script will update the [version.go](./internal/version.go) file with the next development version `v0.19.0`. -- You can define the bump type, using the `BUMP_TYPE` environment variable. The default value is `minor`, but you can also use `major` or `patch` (the script will fail if the value is not one of these three): - - BUMP_TYPE="major" ./scripts/pre-release.sh - The script will update the `go.mod` files for each Go modules and example modules under the examples and modules directories, updating the version of the testcontainers-go dependency to the recently created tag. - The script will modify the docs for the each Go module **that was not released yet**, updating the version of _Testcontainers for Go_ where it was added to the recently created tag. @@ -127,6 +124,10 @@ Once you are satisfied with the modified files in the git state: DRY_RUN="false" ./scripts/release.sh +- You can define the bump type, using the `BUMP_TYPE` environment variable. The default value is `minor`, but you can also use `major` or `patch` (the script will fail if the value is not one of these three): + + BUMP_TYPE="major" ./scripts/release.sh + - The script will commit the current state of the git repository, if the `DRY_RUN` variable is set to `false`. The modified files are the ones modified by the `pre-release.sh` script. - The script will create a git tag with the current value of the [version.go](./internal/version.go) file, starting with `v`: e.g. `v0.18.0`, for the following Go modules: - the root module, representing the Testcontainers for Go library. diff --git a/examples/bigtable/go.mod b/examples/bigtable/go.mod index 7aaec9c5fa..a262e2c54b 100644 --- a/examples/bigtable/go.mod +++ b/examples/bigtable/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( cloud.google.com/go/bigtable v1.18.1 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 google.golang.org/api v0.121.0 google.golang.org/grpc v1.55.0 gotest.tools/gotestsum v1.10.0 diff --git a/examples/cockroachdb/go.mod b/examples/cockroachdb/go.mod index fecb604a51..23e15af35a 100644 --- a/examples/cockroachdb/go.mod +++ b/examples/cockroachdb/go.mod @@ -6,7 +6,7 @@ require ( github.com/google/uuid v1.3.0 github.com/jackc/pgx/v4 v4.18.1 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/examples/consul/go.mod b/examples/consul/go.mod index 015835078c..8de931f540 100644 --- a/examples/consul/go.mod +++ b/examples/consul/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/hashicorp/consul/api v1.20.0 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/examples/datastore/go.mod b/examples/datastore/go.mod index 0d55e97d50..1fcbe39a0b 100644 --- a/examples/datastore/go.mod +++ b/examples/datastore/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( cloud.google.com/go/datastore v1.11.0 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 google.golang.org/api v0.121.0 google.golang.org/grpc v1.55.0 gotest.tools/gotestsum v1.10.0 diff --git a/examples/firestore/go.mod b/examples/firestore/go.mod index 6937edbb25..7a1b1e682b 100644 --- a/examples/firestore/go.mod +++ b/examples/firestore/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( cloud.google.com/go/firestore v1.9.0 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 google.golang.org/api v0.121.0 google.golang.org/grpc v1.55.0 gotest.tools/gotestsum v1.10.0 diff --git a/examples/mongodb/go.mod b/examples/mongodb/go.mod index 999d97fd54..598342d1a6 100644 --- a/examples/mongodb/go.mod +++ b/examples/mongodb/go.mod @@ -3,7 +3,7 @@ module github.com/testcontainers/testcontainers-go/examples/mongodb go 1.19 require ( - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 go.mongodb.org/mongo-driver v1.11.3 gotest.tools/gotestsum v1.10.0 ) diff --git a/examples/nginx/go.mod b/examples/nginx/go.mod index ff9813cede..6831da990d 100644 --- a/examples/nginx/go.mod +++ b/examples/nginx/go.mod @@ -3,7 +3,7 @@ module github.com/testcontainers/testcontainers-go/examples/nginx go 1.19 require ( - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/examples/pubsub/go.mod b/examples/pubsub/go.mod index 8c8d2cfcc8..a92c94ca6b 100644 --- a/examples/pubsub/go.mod +++ b/examples/pubsub/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( cloud.google.com/go/pubsub v1.30.1 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 google.golang.org/api v0.121.0 google.golang.org/grpc v1.55.0 gotest.tools/gotestsum v1.10.0 diff --git a/examples/spanner/go.mod b/examples/spanner/go.mod index f9d6c399a5..02e08fcfdb 100644 --- a/examples/spanner/go.mod +++ b/examples/spanner/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( cloud.google.com/go/spanner v1.45.1 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 google.golang.org/api v0.121.0 google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 google.golang.org/grpc v1.55.0 diff --git a/examples/toxiproxy/go.mod b/examples/toxiproxy/go.mod index b7cd625657..46cbf81706 100644 --- a/examples/toxiproxy/go.mod +++ b/examples/toxiproxy/go.mod @@ -6,7 +6,7 @@ require ( github.com/Shopify/toxiproxy/v2 v2.5.0 github.com/go-redis/redis/v8 v8.11.5 github.com/google/uuid v1.3.0 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/internal/version.go b/internal/version.go index 1177c175ab..5e5433890e 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,4 +1,4 @@ package internal // Version is the next development version of the application -const Version = "0.21.0" +const Version = "0.20.1" diff --git a/mkdocs.yml b/mkdocs.yml index de5d634c79..fd2c8c33ee 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -88,4 +88,4 @@ nav: - Getting help: getting_help.md edit_uri: edit/main/docs/ extra: - latest_version: v0.21.0 + latest_version: v0.20.1 diff --git a/modules/compose/go.mod b/modules/compose/go.mod index 214ac6644a..8562e92f3e 100644 --- a/modules/compose/go.mod +++ b/modules/compose/go.mod @@ -25,7 +25,7 @@ require ( github.com/docker/docker v23.0.5+incompatible github.com/google/uuid v1.3.0 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 golang.org/x/sync v0.2.0 gopkg.in/yaml.v3 v3.0.1 gotest.tools/gotestsum v1.10.0 diff --git a/modules/couchbase/go.mod b/modules/couchbase/go.mod index 756bbe68ba..a333a363e2 100644 --- a/modules/couchbase/go.mod +++ b/modules/couchbase/go.mod @@ -6,7 +6,7 @@ require ( github.com/cenkalti/backoff/v4 v4.2.1 github.com/couchbase/gocb/v2 v2.6.3 github.com/docker/go-connections v0.4.0 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 github.com/tidwall/gjson v1.14.4 gotest.tools/gotestsum v1.10.0 ) diff --git a/modules/localstack/go.mod b/modules/localstack/go.mod index 6ec694fbdb..681f46129f 100644 --- a/modules/localstack/go.mod +++ b/modules/localstack/go.mod @@ -10,7 +10,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/s3 v1.31.3 github.com/docker/go-connections v0.4.0 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 golang.org/x/mod v0.10.0 gotest.tools/gotestsum v1.10.0 ) diff --git a/modules/mysql/go.mod b/modules/mysql/go.mod index ddaac07b2e..11bdfd2f29 100644 --- a/modules/mysql/go.mod +++ b/modules/mysql/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/go-sql-driver/mysql v1.7.1 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/modules/neo4j/go.mod b/modules/neo4j/go.mod index 6e59ebb65b..8959a972bf 100644 --- a/modules/neo4j/go.mod +++ b/modules/neo4j/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/docker/go-connections v0.4.0 github.com/neo4j/neo4j-go-driver/v5 v5.8.0 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/modules/postgres/go.mod b/modules/postgres/go.mod index db5944a808..7d6514f6dc 100644 --- a/modules/postgres/go.mod +++ b/modules/postgres/go.mod @@ -6,7 +6,7 @@ require ( github.com/docker/go-connections v0.4.0 github.com/lib/pq v1.10.9 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/modules/pulsar/go.mod b/modules/pulsar/go.mod index 8803055fc7..6ec731216d 100644 --- a/modules/pulsar/go.mod +++ b/modules/pulsar/go.mod @@ -7,7 +7,7 @@ require ( github.com/docker/docker v23.0.5+incompatible github.com/docker/go-connections v0.4.0 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/modules/redis/go.mod b/modules/redis/go.mod index aa376e78b7..78ba832fe2 100644 --- a/modules/redis/go.mod +++ b/modules/redis/go.mod @@ -6,7 +6,7 @@ require ( github.com/go-redis/redis/v8 v8.11.5 github.com/google/uuid v1.3.0 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 gotest.tools/gotestsum v1.10.0 ) diff --git a/modules/redpanda/go.mod b/modules/redpanda/go.mod index ea1861c994..4433c89f78 100644 --- a/modules/redpanda/go.mod +++ b/modules/redpanda/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/docker/go-connections v0.4.0 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 github.com/twmb/franz-go v1.13.3 github.com/twmb/franz-go/pkg/kadm v1.8.1 gotest.tools/gotestsum v1.10.0 diff --git a/modules/vault/go.mod b/modules/vault/go.mod index bc80ab4c6d..2dfbfed4e0 100644 --- a/modules/vault/go.mod +++ b/modules/vault/go.mod @@ -6,7 +6,7 @@ require ( github.com/docker/docker v23.0.5+incompatible github.com/hashicorp/vault-client-go v0.2.0 github.com/stretchr/testify v1.8.2 - github.com/testcontainers/testcontainers-go v0.20.0 + github.com/testcontainers/testcontainers-go v0.20.1 github.com/tidwall/gjson v1.14.4 gotest.tools/gotestsum v1.10.0 ) diff --git a/scripts/release.sh b/scripts/release.sh index 3aebf402b8..1fe5658d73 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -120,6 +120,7 @@ function gitCommitVersion() { gitFn add "${VERSION_FILE}" gitFn add "${MKDOCS_FILE}" + gitFn add "docs/**/*.md" gitFn add "examples/**/go.*" gitFn add "modules/**/go.*" gitFn commit -m "chore: use new version (${version}) in modules and examples"