Skip to content

Commit

Permalink
chore: use new version (v0.20.1) in modules and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed May 10, 2023
1 parent 9b9e3aa commit 675cb12
Show file tree
Hide file tree
Showing 24 changed files with 27 additions and 25 deletions.
7 changes: 4 additions & 3 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/bigtable/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/cockroachdb/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion examples/consul/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion examples/datastore/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/firestore/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/mongodb/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion examples/nginx/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion examples/pubsub/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/spanner/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/toxiproxy/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion modules/compose/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/couchbase/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion modules/localstack/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion modules/mysql/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion modules/neo4j/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion modules/postgres/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion modules/pulsar/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion modules/redis/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion modules/redpanda/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/vault/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 1 addition & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 675cb12

Please sign in to comment.