From ea7d25400cb602b3f13cdde6af045952e0336562 Mon Sep 17 00:00:00 2001 From: Vadim Gedz Date: Tue, 3 Dec 2024 22:18:06 +0200 Subject: [PATCH] chore: nhooyr.io/websocket -> github.com/coder/websocket (#349) --- cmd/argo-watcher/server/router.go | 2 +- cmd/argo-watcher/server/router_test.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/argo-watcher/server/router.go b/cmd/argo-watcher/server/router.go index 33e5adb..3cf4093 100644 --- a/cmd/argo-watcher/server/router.go +++ b/cmd/argo-watcher/server/router.go @@ -15,6 +15,7 @@ import ( "github.com/shini4i/argo-watcher/cmd/argo-watcher/prometheus" + "github.com/coder/websocket" "github.com/gin-gonic/contrib/static" "github.com/gin-gonic/gin" "github.com/prometheus/client_golang/prometheus/promhttp" @@ -24,7 +25,6 @@ import ( "github.com/shini4i/argo-watcher/internal/models" swaggerFiles "github.com/swaggo/files" ginSwagger "github.com/swaggo/gin-swagger" - "nhooyr.io/websocket" ) var version = "local" diff --git a/cmd/argo-watcher/server/router_test.go b/cmd/argo-watcher/server/router_test.go index c7560c9..0e38604 100644 --- a/cmd/argo-watcher/server/router_test.go +++ b/cmd/argo-watcher/server/router_test.go @@ -11,7 +11,7 @@ import ( "github.com/shini4i/argo-watcher/cmd/argo-watcher/argocd" "github.com/shini4i/argo-watcher/cmd/argo-watcher/prometheus" - "nhooyr.io/websocket" + "github.com/coder/websocket" "github.com/shini4i/argo-watcher/cmd/argo-watcher/config" diff --git a/go.mod b/go.mod index cece8a1..9441932 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ toolchain go1.23.3 require ( github.com/avast/retry-go/v4 v4.6.0 github.com/caarlos0/env/v11 v11.2.2 + github.com/coder/websocket v1.8.12 github.com/gin-gonic/contrib v0.0.0-20240508051311-c1c6bf0061b0 github.com/gin-gonic/gin v1.10.0 github.com/go-git/go-billy/v5 v5.6.0 @@ -26,7 +27,6 @@ require ( gorm.io/datatypes v1.2.4 gorm.io/driver/postgres v1.5.11 gorm.io/gorm v1.25.12 - nhooyr.io/websocket v1.8.17 ) require ( diff --git a/go.sum b/go.sum index 060df79..1261d24 100644 --- a/go.sum +++ b/go.sum @@ -38,6 +38,8 @@ github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/ github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w= github.com/cloudwego/iasm v0.2.0 h1:1KNIy1I1H9hNNFEEH3DVnI4UujN+1zjpuk6gwHLTssg= github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY= +github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo= +github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cyphar/filepath-securejoin v0.2.5 h1:6iR5tXJ/e6tJZzzdMc1km3Sa7RRIVBKAK32O2s7AYfo= @@ -368,7 +370,5 @@ gorm.io/driver/sqlserver v1.4.1/go.mod h1:DJ4P+MeZbc5rvY58PnmN1Lnyvb5gw5NPzGshHD gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8= gorm.io/gorm v1.25.12 h1:I0u8i2hWQItBq1WfE0o2+WuL9+8L21K9e2HHSTE/0f8= gorm.io/gorm v1.25.12/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ= -nhooyr.io/websocket v1.8.17 h1:KEVeLJkUywCKVsnLIDlD/5gtayKp8VoCkksHCGGfT9Y= -nhooyr.io/websocket v1.8.17/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c= nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=