From 8fad4ea91167bf9b3e9301cad6601ecf4b8ccd31 Mon Sep 17 00:00:00 2001 From: Marcos Huck Date: Wed, 21 Feb 2024 17:33:41 -0300 Subject: [PATCH] Bump gz-go version to v10 (#117) * Bump gz-go version to v10 --- README.md | 2 +- database/gorm/gorm.go | 2 +- encoders/marshaler.go | 2 +- examples/authentication/http/main.go | 2 +- go.mod | 2 +- mailing/sendgrid_builder.go | 2 +- mailing/sendgrid_injector.go | 2 +- mailing/sendgrid_test.go | 2 +- mailing/ses.go | 2 +- mailing/templates_test.go | 2 +- main.go | 2 +- monitoring/prometheus/prometheus.go | 2 +- monitoring_prometheus_test.go | 4 ++-- net/client.go | 2 +- net/client_test.go | 2 +- net/http.go | 4 ++-- repository/firestore/firestore.go | 6 +++--- repository/firestore/firestore_test.go | 4 ++-- repository/firestore/options.go | 4 ++-- repository/firestore/options_test.go | 2 +- repository/sql/options.go | 2 +- repository/sql/options_test.go | 4 ++-- repository/sql/repository.go | 4 ++-- repository/sql/repository_test.go | 4 ++-- router.go | 2 +- scheduler/scheduler.go | 2 +- storage/filesystem_storage.go | 2 +- storage/gcs.go | 2 +- storage/storage.go | 2 +- utility.go | 2 +- 30 files changed, 39 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index a4ede6d..941d631 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ func example() { ## Installing ### Using Go CLI ``` -go get github.com/gazebo-web/gz-go/v9 +go get github.com/gazebo-web/gz-go/v10 ``` ## Contribute diff --git a/database/gorm/gorm.go b/database/gorm/gorm.go index 366cba4..0ead8a2 100644 --- a/database/gorm/gorm.go +++ b/database/gorm/gorm.go @@ -4,7 +4,7 @@ import ( "errors" "log" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" "gorm.io/gorm" ) diff --git a/encoders/marshaler.go b/encoders/marshaler.go index 8e4aff0..680d97a 100644 --- a/encoders/marshaler.go +++ b/encoders/marshaler.go @@ -4,7 +4,7 @@ import ( "context" "io" - "github.com/gazebo-web/gz-go/v9/telemetry" + "github.com/gazebo-web/gz-go/v10/telemetry" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "go.opentelemetry.io/otel/codes" ) diff --git a/examples/authentication/http/main.go b/examples/authentication/http/main.go index dcb6283..0785644 100644 --- a/examples/authentication/http/main.go +++ b/examples/authentication/http/main.go @@ -7,7 +7,7 @@ import ( "time" "github.com/gazebo-web/auth/pkg/authentication" - "github.com/gazebo-web/gz-go/v9/middleware" + "github.com/gazebo-web/gz-go/v10/middleware" "github.com/rs/cors" ) diff --git a/go.mod b/go.mod index 099234b..99d0e20 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/gazebo-web/gz-go/v9 +module github.com/gazebo-web/gz-go/v10 go 1.21 diff --git a/mailing/sendgrid_builder.go b/mailing/sendgrid_builder.go index cf264e4..0d43e31 100644 --- a/mailing/sendgrid_builder.go +++ b/mailing/sendgrid_builder.go @@ -1,7 +1,7 @@ package mailing import ( - "github.com/gazebo-web/gz-go/v9/structs" + "github.com/gazebo-web/gz-go/v10/structs" "github.com/sendgrid/sendgrid-go/helpers/mail" ) diff --git a/mailing/sendgrid_injector.go b/mailing/sendgrid_injector.go index ad4211c..7b0f470 100644 --- a/mailing/sendgrid_injector.go +++ b/mailing/sendgrid_injector.go @@ -1,6 +1,6 @@ package mailing -import "github.com/gazebo-web/gz-go/v9" +import "github.com/gazebo-web/gz-go/v10" // contentInjector is a function that prepares and configures email content to be sent by sendgridEmailService. type contentInjector func(b sendgridEmailBuilder, key string, data any) (sendgridEmailBuilder, error) diff --git a/mailing/sendgrid_test.go b/mailing/sendgrid_test.go index c2e636a..2448972 100644 --- a/mailing/sendgrid_test.go +++ b/mailing/sendgrid_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" "github.com/sendgrid/rest" "github.com/sendgrid/sendgrid-go/helpers/mail" "github.com/stretchr/testify/mock" diff --git a/mailing/ses.go b/mailing/ses.go index 5f4f333..0cb87ea 100644 --- a/mailing/ses.go +++ b/mailing/ses.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/ses" "github.com/aws/aws-sdk-go/service/ses/sesiface" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" ) // awsSimpleEmailService implements the Sender interface using AWS Simple Email Service API. diff --git a/mailing/templates_test.go b/mailing/templates_test.go index 361bc28..cb79b58 100644 --- a/mailing/templates_test.go +++ b/mailing/templates_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" "github.com/sendgrid/rest" "github.com/stretchr/testify/suite" ) diff --git a/main.go b/main.go index 32f9cfd..2cb5011 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "github.com/gazebo-web/gz-go/v9/monitoring" + "github.com/gazebo-web/gz-go/v10/monitoring" "github.com/gorilla/mux" "github.com/rollbar/rollbar-go" "gorm.io/driver/mysql" diff --git a/monitoring/prometheus/prometheus.go b/monitoring/prometheus/prometheus.go index 15981eb..add77c5 100644 --- a/monitoring/prometheus/prometheus.go +++ b/monitoring/prometheus/prometheus.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/gazebo-web/gz-go/v9/monitoring" + "github.com/gazebo-web/gz-go/v10/monitoring" "github.com/gorilla/mux" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/monitoring_prometheus_test.go b/monitoring_prometheus_test.go index daf8224..0310335 100644 --- a/monitoring_prometheus_test.go +++ b/monitoring_prometheus_test.go @@ -5,8 +5,8 @@ import ( "net/http/httptest" "testing" - "github.com/gazebo-web/gz-go/v9/monitoring" - "github.com/gazebo-web/gz-go/v9/monitoring/prometheus" + "github.com/gazebo-web/gz-go/v10/monitoring" + "github.com/gazebo-web/gz-go/v10/monitoring/prometheus" "github.com/gorilla/mux" "github.com/stretchr/testify/suite" "gorm.io/gorm" diff --git a/net/client.go b/net/client.go index dd9b895..f2b8726 100644 --- a/net/client.go +++ b/net/client.go @@ -5,7 +5,7 @@ import ( "errors" "reflect" - "github.com/gazebo-web/gz-go/v9/encoders" + "github.com/gazebo-web/gz-go/v10/encoders" ) var ( diff --git a/net/client_test.go b/net/client_test.go index 8cc881a..2fa604a 100644 --- a/net/client_test.go +++ b/net/client_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/gazebo-web/gz-go/v9/encoders" + "github.com/gazebo-web/gz-go/v10/encoders" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/net/http.go b/net/http.go index 1511d06..742cc6e 100644 --- a/net/http.go +++ b/net/http.go @@ -10,8 +10,8 @@ import ( "strings" "time" - "github.com/gazebo-web/gz-go/v9/encoders" - "github.com/gazebo-web/gz-go/v9/telemetry" + "github.com/gazebo-web/gz-go/v10/encoders" + "github.com/gazebo-web/gz-go/v10/telemetry" "go.opentelemetry.io/otel/codes" ) diff --git a/repository/firestore/firestore.go b/repository/firestore/firestore.go index 7abff03..f23273b 100644 --- a/repository/firestore/firestore.go +++ b/repository/firestore/firestore.go @@ -4,9 +4,9 @@ import ( "context" "cloud.google.com/go/firestore" - "github.com/gazebo-web/gz-go/v9/errors" - "github.com/gazebo-web/gz-go/v9/reflect" - "github.com/gazebo-web/gz-go/v9/repository" + "github.com/gazebo-web/gz-go/v10/errors" + "github.com/gazebo-web/gz-go/v10/reflect" + "github.com/gazebo-web/gz-go/v10/repository" "google.golang.org/api/iterator" ) diff --git a/repository/firestore/firestore_test.go b/repository/firestore/firestore_test.go index 493a6af..925d26f 100644 --- a/repository/firestore/firestore_test.go +++ b/repository/firestore/firestore_test.go @@ -9,8 +9,8 @@ import ( "cloud.google.com/go/firestore" firebase "firebase.google.com/go/v4" - "github.com/gazebo-web/gz-go/v9/errors" - "github.com/gazebo-web/gz-go/v9/repository" + "github.com/gazebo-web/gz-go/v10/errors" + "github.com/gazebo-web/gz-go/v10/repository" "github.com/stretchr/testify/suite" ) diff --git a/repository/firestore/options.go b/repository/firestore/options.go index 3500929..a5bf9e9 100644 --- a/repository/firestore/options.go +++ b/repository/firestore/options.go @@ -4,8 +4,8 @@ import ( "errors" "cloud.google.com/go/firestore" - "github.com/gazebo-web/gz-go/v9/pagination" - "github.com/gazebo-web/gz-go/v9/repository" + "github.com/gazebo-web/gz-go/v10/pagination" + "github.com/gazebo-web/gz-go/v10/repository" ) // Option is a Firestore-specific repository.Option implementation. diff --git a/repository/firestore/options_test.go b/repository/firestore/options_test.go index b307e90..965223f 100644 --- a/repository/firestore/options_test.go +++ b/repository/firestore/options_test.go @@ -3,7 +3,7 @@ package firestore import ( "testing" - "github.com/gazebo-web/gz-go/v9/repository" + "github.com/gazebo-web/gz-go/v10/repository" "github.com/stretchr/testify/assert" ) diff --git a/repository/sql/options.go b/repository/sql/options.go index d2d6913..ad359f6 100644 --- a/repository/sql/options.go +++ b/repository/sql/options.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/gazebo-web/gz-go/v9/repository" + "github.com/gazebo-web/gz-go/v10/repository" "gorm.io/gorm" ) diff --git a/repository/sql/options_test.go b/repository/sql/options_test.go index 58975e5..ec3cfc0 100644 --- a/repository/sql/options_test.go +++ b/repository/sql/options_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - utilsgorm "github.com/gazebo-web/gz-go/v9/database/gorm" - "github.com/gazebo-web/gz-go/v9/repository" + utilsgorm "github.com/gazebo-web/gz-go/v10/database/gorm" + "github.com/gazebo-web/gz-go/v10/repository" "github.com/stretchr/testify/suite" "gorm.io/gorm" ) diff --git a/repository/sql/repository.go b/repository/sql/repository.go index 68c01fc..794b050 100644 --- a/repository/sql/repository.go +++ b/repository/sql/repository.go @@ -3,8 +3,8 @@ package sql import ( "context" - "github.com/gazebo-web/gz-go/v9/reflect" - "github.com/gazebo-web/gz-go/v9/repository" + "github.com/gazebo-web/gz-go/v10/reflect" + "github.com/gazebo-web/gz-go/v10/repository" "gorm.io/gorm" ) diff --git a/repository/sql/repository_test.go b/repository/sql/repository_test.go index ca492bf..e29e6ce 100644 --- a/repository/sql/repository_test.go +++ b/repository/sql/repository_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - utilsgorm "github.com/gazebo-web/gz-go/v9/database/gorm" - "github.com/gazebo-web/gz-go/v9/repository" + utilsgorm "github.com/gazebo-web/gz-go/v10/database/gorm" + "github.com/gazebo-web/gz-go/v10/repository" "github.com/stretchr/testify/suite" "gorm.io/gorm" ) diff --git a/router.go b/router.go index f25ff79..fdbc298 100644 --- a/router.go +++ b/router.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/codegangsta/negroni" - "github.com/gazebo-web/gz-go/v9/monitoring" + "github.com/gazebo-web/gz-go/v10/monitoring" "github.com/gorilla/mux" ) diff --git a/scheduler/scheduler.go b/scheduler/scheduler.go index d6f09ba..2b18acd 100644 --- a/scheduler/scheduler.go +++ b/scheduler/scheduler.go @@ -4,7 +4,7 @@ import ( "sync" "time" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" sch "gitlab.com/ignitionrobotics/web/scheduler" ) diff --git a/storage/filesystem_storage.go b/storage/filesystem_storage.go index 5850550..99f6732 100644 --- a/storage/filesystem_storage.go +++ b/storage/filesystem_storage.go @@ -5,7 +5,7 @@ import ( "io" "os" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" "github.com/pkg/errors" ) diff --git a/storage/gcs.go b/storage/gcs.go index 95f640e..e63cd48 100644 --- a/storage/gcs.go +++ b/storage/gcs.go @@ -8,7 +8,7 @@ import ( "time" "cloud.google.com/go/storage" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" ) // gcs implements Storage using the Google Cloud Storage (GCS) service. diff --git a/storage/storage.go b/storage/storage.go index 8a099ca..5df4162 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -9,7 +9,7 @@ import ( "path/filepath" "strconv" - "github.com/gazebo-web/gz-go/v9" + "github.com/gazebo-web/gz-go/v10" "github.com/pkg/errors" ) diff --git a/utility.go b/utility.go index 07edead..2e64701 100644 --- a/utility.go +++ b/utility.go @@ -20,7 +20,7 @@ import ( "text/template" "github.com/form3tech-oss/jwt-go" - gzerrors "github.com/gazebo-web/gz-go/v9/errors" + gzerrors "github.com/gazebo-web/gz-go/v10/errors" ) // GetUserIdentity returns the user identity found in the http request's JWT