Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
1. Updating dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
BorzdeG committed Nov 15, 2023
1 parent aa36381 commit 8e3980a
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 46 deletions.
10 changes: 5 additions & 5 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"time"

"github.com/caarlos0/env/v9"
coreUtils "github.com/itbasis/go-core-utils/v2"
"github.com/caarlos0/env/v10"
itbasisCoreUtilsEnvReader "github.com/itbasis/go-core-utils/v2/env-reader"
"github.com/juju/zaputil/zapctx"
"go.uber.org/zap/zapcore"
"gorm.io/driver/postgres"
Expand Down Expand Up @@ -66,13 +66,13 @@ func (receiver *DB) readEnvironmentConfig(ctx context.Context) error {
logger := zapctx.Default.Sugar()
logger.Info("reading environment...")

if err := coreUtils.ReadEnvConfig(ctx, receiver.Config, nil); err != nil {
if err := itbasisCoreUtilsEnvReader.ReadEnvConfig(ctx, receiver.Config, nil); err != nil {
logger.Error(fmt.Errorf("error reading configuration from environment: %w", err))

return ErrCreateInstance
}

if err := coreUtils.ReadEnvConfig(ctx, receiver.connCredential, nil); err != nil {
if err := itbasisCoreUtilsEnvReader.ReadEnvConfig(ctx, receiver.connCredential, nil); err != nil {
logger.Error(fmt.Errorf("error reading credentials from environment: %w", err))

return ErrCreateInstance
Expand All @@ -84,7 +84,7 @@ func (receiver *DB) readEnvironmentConfig(ctx context.Context) error {
Password: receiver.connCredential.Password,
}

if err := coreUtils.ReadEnvConfig(ctx, receiver.connSchemaCredential, &env.Options{Prefix: "SCHEMA_"}); err != nil {
if err := itbasisCoreUtilsEnvReader.ReadEnvConfig(ctx, receiver.connSchemaCredential, &env.Options{Prefix: "SCHEMA_"}); err != nil {
logger.Error(fmt.Errorf("error reading credentials for schema from environment: %w", err))

return ErrCreateInstance
Expand Down
25 changes: 13 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ module github.com/itbasis/go-service/v2
go 1.20

require (
github.com/caarlos0/env/v9 v9.0.0
github.com/caarlos0/env/v10 v10.0.0
github.com/gin-contrib/zap v0.2.0
github.com/gin-gonic/gin v1.9.1
github.com/go-co-op/gocron v1.35.3
github.com/go-co-op/gocron v1.36.0
github.com/gofrs/uuid/v5 v5.0.0
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.0
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1
github.com/itbasis/go-clock v1.5.1
github.com/itbasis/go-core-utils/v2 v2.2.3
github.com/itbasis/go-jwt-auth/v2 v2.0.3
github.com/itbasis/go-log-utils/v2 v2.2.4
github.com/itbasis/go-test-utils/v2 v2.3.3
github.com/itbasis/go-core-utils/v2 v2.3.0
github.com/itbasis/go-jwt-auth/v2 v2.0.4
github.com/itbasis/go-log-utils/v2 v2.3.0
github.com/itbasis/go-test-utils/v2 v2.3.4
github.com/juju/zaputil v0.0.0-20190326175239-ef53049637ac
github.com/onsi/ginkgo/v2 v2.13.0
github.com/onsi/gomega v1.29.0
github.com/onsi/ginkgo/v2 v2.13.1
github.com/onsi/gomega v1.30.0
github.com/pkg/errors v0.9.1
github.com/pressly/goose/v3 v3.15.1
github.com/pressly/goose/v3 v3.16.0
github.com/prometheus/client_golang v1.17.0
go.uber.org/zap v1.26.0
google.golang.org/grpc v1.59.0
Expand Down Expand Up @@ -68,17 +68,18 @@ require (
github.com/prometheus/procfs v0.12.0 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/sethvargo/go-retry v0.2.4 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/arch v0.6.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/crypto v0.15.0 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.14.0 // indirect
golang.org/x/tools v0.15.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading

0 comments on commit 8e3980a

Please sign in to comment.