diff --git a/auth/cache/policies.go b/auth/cache/policies.go index fbf6176f340..3cdc9aebaef 100644 --- a/auth/cache/policies.go +++ b/auth/cache/policies.go @@ -11,7 +11,7 @@ import ( "github.com/absmach/magistrala/auth" "github.com/absmach/magistrala/pkg/errors" repoerr "github.com/absmach/magistrala/pkg/errors/repository" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) const defLimit = 100 diff --git a/auth/cache/policies_test.go b/auth/cache/policies_test.go index 28529f3a447..54a65957a4a 100644 --- a/auth/cache/policies_test.go +++ b/auth/cache/policies_test.go @@ -15,7 +15,7 @@ import ( "github.com/absmach/magistrala/internal/testsutil" "github.com/absmach/magistrala/pkg/errors" repoerr "github.com/absmach/magistrala/pkg/errors/repository" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" "github.com/stretchr/testify/assert" ) diff --git a/auth/cache/setup_test.go b/auth/cache/setup_test.go index 76f0fb146b1..078c3ec7586 100644 --- a/auth/cache/setup_test.go +++ b/auth/cache/setup_test.go @@ -12,9 +12,9 @@ import ( "syscall" "testing" - "github.com/go-redis/redis/v8" "github.com/ory/dockertest/v3" "github.com/ory/dockertest/v3/docker" + "github.com/redis/go-redis/v9" ) var redisURL string diff --git a/bootstrap/events/producer/setup_test.go b/bootstrap/events/producer/setup_test.go index d19f5511a73..517cd652dbf 100644 --- a/bootstrap/events/producer/setup_test.go +++ b/bootstrap/events/producer/setup_test.go @@ -10,9 +10,9 @@ import ( "os" "testing" - "github.com/go-redis/redis/v8" "github.com/ory/dockertest/v3" "github.com/ory/dockertest/v3/docker" + "github.com/redis/go-redis/v9" ) var ( diff --git a/bootstrap/events/producer/streams_test.go b/bootstrap/events/producer/streams_test.go index 63e8dfc9a00..a54870258e6 100644 --- a/bootstrap/events/producer/streams_test.go +++ b/bootstrap/events/producer/streams_test.go @@ -23,7 +23,7 @@ import ( mgsdk "github.com/absmach/magistrala/pkg/sdk/go" sdkmocks "github.com/absmach/magistrala/pkg/sdk/mocks" "github.com/absmach/magistrala/pkg/uuid" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" diff --git a/cmd/auth/main.go b/cmd/auth/main.go index 1a5c9439688..946a3cd4215 100644 --- a/cmd/auth/main.go +++ b/cmd/auth/main.go @@ -38,8 +38,8 @@ import ( "github.com/authzed/authzed-go/v1" "github.com/authzed/grpcutil" "github.com/caarlos0/env/v10" - "github.com/go-redis/redis/v8" "github.com/jmoiron/sqlx" + "github.com/redis/go-redis/v9" "go.opentelemetry.io/otel/trace" "golang.org/x/sync/errgroup" "google.golang.org/grpc" diff --git a/cmd/lora/main.go b/cmd/lora/main.go index d3da1f2ee2a..c3d9d7a16ea 100644 --- a/cmd/lora/main.go +++ b/cmd/lora/main.go @@ -33,7 +33,7 @@ import ( "github.com/absmach/magistrala/pkg/uuid" "github.com/caarlos0/env/v10" mqttpaho "github.com/eclipse/paho.mqtt.golang" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" "golang.org/x/sync/errgroup" ) diff --git a/cmd/opcua/main.go b/cmd/opcua/main.go index 060ffe56096..839e724a20d 100644 --- a/cmd/opcua/main.go +++ b/cmd/opcua/main.go @@ -31,7 +31,7 @@ import ( httpserver "github.com/absmach/magistrala/pkg/server/http" "github.com/absmach/magistrala/pkg/uuid" "github.com/caarlos0/env/v10" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" "golang.org/x/sync/errgroup" ) diff --git a/cmd/things/main.go b/cmd/things/main.go index 9e55a9b2765..79d2d55d87f 100644 --- a/cmd/things/main.go +++ b/cmd/things/main.go @@ -43,8 +43,8 @@ import ( ctracing "github.com/absmach/magistrala/things/tracing" "github.com/caarlos0/env/v10" "github.com/go-chi/chi/v5" - "github.com/go-redis/redis/v8" "github.com/jmoiron/sqlx" + "github.com/redis/go-redis/v9" "go.opentelemetry.io/otel/trace" "golang.org/x/sync/errgroup" "google.golang.org/grpc" diff --git a/cmd/twins/main.go b/cmd/twins/main.go index 8eb23936ade..c154bf8861f 100644 --- a/cmd/twins/main.go +++ b/cmd/twins/main.go @@ -34,7 +34,7 @@ import ( twmongodb "github.com/absmach/magistrala/twins/mongodb" "github.com/absmach/magistrala/twins/tracing" "github.com/caarlos0/env/v10" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" "go.mongodb.org/mongo-driver/mongo" "go.opentelemetry.io/otel/trace" "golang.org/x/sync/errgroup" diff --git a/go.mod b/go.mod index e13d4e4aac9..b9450903775 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,6 @@ require ( github.com/fiorix/go-smpp v0.0.0-20210403173735-2894b96e70ba github.com/go-chi/chi/v5 v5.1.0 github.com/go-kit/kit v0.13.0 - github.com/go-redis/redis/v8 v8.11.5 github.com/gocql/gocql v1.6.0 github.com/gofrs/uuid v4.4.0+incompatible github.com/gookit/color v1.5.4 @@ -40,6 +39,7 @@ require ( github.com/plgd-dev/go-coap/v3 v3.3.4 github.com/prometheus/client_golang v1.19.1 github.com/rabbitmq/amqp091-go v1.10.0 + github.com/redis/go-redis/v9 v9.5.1 github.com/rubenv/sql-migrate v1.6.1 github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.19.0 @@ -135,9 +135,7 @@ require ( github.com/montanaflynn/stats v0.7.1 // indirect github.com/nats-io/nkeys v0.4.7 // indirect github.com/nats-io/nuid v1.0.1 // indirect - github.com/nxadm/tail v1.4.11 // indirect github.com/oapi-codegen/runtime v1.1.1 // indirect - github.com/onsi/gomega v1.33.1 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect github.com/opencontainers/runc v1.1.12 // indirect diff --git a/go.sum b/go.sum index cbd5e257a4f..c91d635aa86 100644 --- a/go.sum +++ b/go.sum @@ -39,6 +39,10 @@ github.com/bitly/go-hostpool v0.1.0/go.mod h1:4gOCgp6+NZnVqlKyZ/iBZFTAJKembaVENU github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= +github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= +github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= +github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= +github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= github.com/caarlos0/env/v10 v10.0.0 h1:yIHUBZGsyqCnpTkbjk8asUlx6RFhhEs+h7TOBdgdzXA= github.com/caarlos0/env/v10 v10.0.0/go.mod h1:ZfulV76NvVPw3tm591U4SwL3Xx9ldzBP9aGxzeN7G18= github.com/caarlos0/env/v11 v11.0.0 h1:ZIlkOjuL3xoZS0kmUJlF74j2Qj8GMOq3CDLX/Viak8Q= @@ -100,7 +104,6 @@ github.com/fiorix/go-smpp v0.0.0-20210403173735-2894b96e70ba h1:vBqABUa2HUSc6tj2 github.com/fiorix/go-smpp v0.0.0-20210403173735-2894b96e70ba/go.mod h1:VfKFK7fGeCP81xEhbrOqUEh45n73Yy6jaPWwTVbxprI= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/fxamacker/cbor/v2 v2.6.0 h1:sU6J2usfADwWlYDAFhZBQ6TnLFBHxgesMrQfQgk1tWA= @@ -124,8 +127,6 @@ github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= -github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= @@ -336,16 +337,10 @@ github.com/nats-io/nkeys v0.4.7 h1:RwNJbbIdYCoClSDNY7QVKZlyb/wfT6ugvFCiKy6vDvI= github.com/nats-io/nkeys v0.4.7/go.mod h1:kqXRgRDPlGy7nGaEDMuYzmiJCIAAWDK0IMBtDmGD0nc= github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/nxadm/tail v1.4.11 h1:8feyoE3OzPrcshW5/MJ4sGESc5cqmGkGCWlco4l0bqY= -github.com/nxadm/tail v1.4.11/go.mod h1:OTaG3NK980DZzxbRq6lEuzgU+mug70nY11sMd4JXXHc= github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= github.com/oklog/ulid/v2 v2.1.0 h1:+9lhoxAP56we25tyYETBBY1YLA2SaoLvUFgrP2miPJU= github.com/oklog/ulid/v2 v2.1.0/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk= -github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= @@ -391,6 +386,8 @@ github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGK github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= github.com/rabbitmq/amqp091-go v1.10.0 h1:STpn5XsHlHGcecLmMFCtg7mqq0RnD+zFr4uzukfVhBw= github.com/rabbitmq/amqp091-go v1.10.0/go.mod h1:Hy4jKW5kQART1u+JkDTF9YYOQUHXqMuhrgxOEeS7G4o= +github.com/redis/go-redis/v9 v9.5.1 h1:H1X4D3yHPaYrkL5X06Wh6xNVM/pX0Ft4RV0vMGvLBh8= +github.com/redis/go-redis/v9 v9.5.1/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= @@ -606,7 +603,6 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -695,8 +691,6 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= diff --git a/internal/clients/redis/redis.go b/internal/clients/redis/redis.go index 4386bf8c09c..4a776409c17 100644 --- a/internal/clients/redis/redis.go +++ b/internal/clients/redis/redis.go @@ -3,7 +3,7 @@ package redis -import "github.com/go-redis/redis/v8" +import "github.com/redis/go-redis/v9" // Connect create new RedisDB client and connect to RedisDB server. func Connect(url string) (*redis.Client, error) { diff --git a/lora/events/routemap.go b/lora/events/routemap.go index 38884ea605f..38fedd345e9 100644 --- a/lora/events/routemap.go +++ b/lora/events/routemap.go @@ -8,7 +8,7 @@ import ( "fmt" "github.com/absmach/magistrala/lora" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) var _ lora.RouteMapRepository = (*routerMap)(nil) diff --git a/opcua/events/routemap.go b/opcua/events/routemap.go index e32beaa8311..b0531ca6864 100644 --- a/opcua/events/routemap.go +++ b/opcua/events/routemap.go @@ -8,7 +8,7 @@ import ( "fmt" "github.com/absmach/magistrala/opcua" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) var _ opcua.RouteMapRepository = (*routerMap)(nil) diff --git a/pkg/events/redis/publisher.go b/pkg/events/redis/publisher.go index c3a6201c96a..77bb537b28e 100644 --- a/pkg/events/redis/publisher.go +++ b/pkg/events/redis/publisher.go @@ -10,7 +10,7 @@ import ( "time" "github.com/absmach/magistrala/pkg/events" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) type pubEventStore struct { diff --git a/pkg/events/redis/setup_test.go b/pkg/events/redis/setup_test.go index 719e0996c3c..1c98ae8cd01 100644 --- a/pkg/events/redis/setup_test.go +++ b/pkg/events/redis/setup_test.go @@ -12,8 +12,8 @@ import ( "syscall" "testing" - "github.com/go-redis/redis/v8" "github.com/ory/dockertest/v3" + "github.com/redis/go-redis/v9" ) var ( diff --git a/pkg/events/redis/subscriber.go b/pkg/events/redis/subscriber.go index f05b52de7e7..dc1f981c602 100644 --- a/pkg/events/redis/subscriber.go +++ b/pkg/events/redis/subscriber.go @@ -11,7 +11,7 @@ import ( "log/slog" "github.com/absmach/magistrala/pkg/events" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) const ( diff --git a/things/cache/setup_test.go b/things/cache/setup_test.go index 90b26fc4307..716f0672cf2 100644 --- a/things/cache/setup_test.go +++ b/things/cache/setup_test.go @@ -10,9 +10,9 @@ import ( "os" "testing" - "github.com/go-redis/redis/v8" "github.com/ory/dockertest/v3" "github.com/ory/dockertest/v3/docker" + "github.com/redis/go-redis/v9" ) var ( diff --git a/things/cache/things.go b/things/cache/things.go index 9c2619ce48c..b09aa6efcbc 100644 --- a/things/cache/things.go +++ b/things/cache/things.go @@ -11,7 +11,7 @@ import ( "github.com/absmach/magistrala/pkg/errors" repoerr "github.com/absmach/magistrala/pkg/errors/repository" "github.com/absmach/magistrala/things" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) const ( diff --git a/twins/events/setup_test.go b/twins/events/setup_test.go index 617ac3dbd16..2034fa2c69d 100644 --- a/twins/events/setup_test.go +++ b/twins/events/setup_test.go @@ -10,9 +10,9 @@ import ( "os" "testing" - "github.com/go-redis/redis/v8" "github.com/ory/dockertest/v3" "github.com/ory/dockertest/v3/docker" + "github.com/redis/go-redis/v9" ) var ( diff --git a/twins/events/twins.go b/twins/events/twins.go index f89a0708ad7..8f530b0c762 100644 --- a/twins/events/twins.go +++ b/twins/events/twins.go @@ -9,7 +9,7 @@ import ( "github.com/absmach/magistrala/pkg/errors" "github.com/absmach/magistrala/twins" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) const (