From a125588eceaf58fce33c15db21478dbe06fa88da Mon Sep 17 00:00:00 2001 From: Roman Sharkov Date: Tue, 15 Oct 2024 23:53:42 +0200 Subject: [PATCH] chore: Upgrade dependencies --- go.mod | 4 ++-- go.sum | 20 ++++++-------------- internal/action/action_test.go | 1 + internal/broadcaster/broadcaster_test.go | 1 + internal/config/config.go | 3 ++- internal/config/config_test.go | 2 +- internal/debounce/debounce_test.go | 1 + internal/filereg/filereg_test.go | 1 + internal/server/server.go | 5 +++-- internal/statetrack/statetrack_test.go | 1 + internal/watcher/watcher.go | 5 +++-- main.go | 2 +- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/go.mod b/go.mod index ca91418..001ae77 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.23.2 require ( github.com/a-h/templ v0.2.778 - github.com/andybalholm/brotli v1.1.0 + github.com/andybalholm/brotli v1.1.1 github.com/cespare/xxhash/v2 v2.3.0 github.com/fatih/color v1.17.0 github.com/fsnotify/fsnotify v1.7.0 @@ -22,7 +22,7 @@ require ( github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cli/browser v1.3.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/gabriel-vasile/mimetype v1.4.5 // indirect + github.com/gabriel-vasile/mimetype v1.4.6 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-playground/validator/v10 v10.22.1 // indirect diff --git a/go.sum b/go.sum index 2d71036..28faa13 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,8 @@ github.com/a-h/protocol v0.0.0-20240821172110-e94e5c43897f h1:R2w1J4LdHLN8j0yzh+ github.com/a-h/protocol v0.0.0-20240821172110-e94e5c43897f/go.mod h1:Gm0KywveHnkiIhqFSMZglXwWZRQICg3KDWLYdglv/d8= github.com/a-h/templ v0.2.778 h1:VzhOuvWECrwOec4790lcLlZpP4Iptt5Q4K9aFxQmtaM= github.com/a-h/templ v0.2.778/go.mod h1:lq48JXoUvuQrU0VThrK31yFwdRjTCnIE5bcPCM9IP1w= -github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= -github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= +github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA= +github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA= github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss= github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6lUvCFb+h7KvU= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= @@ -22,8 +22,8 @@ github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= 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/gabriel-vasile/mimetype v1.4.5 h1:J7wGKdGu33ocBOhGy0z653k/lFKLFDPJMG8Gql0kxn4= -github.com/gabriel-vasile/mimetype v1.4.5/go.mod h1:ibHel+/kbxn9x2407k1izTA1S81ku1z/DlgOW2QE0M4= +github.com/gabriel-vasile/mimetype v1.4.6 h1:3+PzJTKLkvgjeTbts6msPJt4DixhT4YtFNf1gtGe3zc= +github.com/gabriel-vasile/mimetype v1.4.6/go.mod h1:JX1qVKqZd40hUPpAfiNTe0Sne7hdfKSbOqqmkq8GCXc= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= @@ -64,6 +64,8 @@ github.com/segmentio/encoding v0.4.0 h1:MEBYvRqiUB2nfR2criEXWqwdY6HJOUrCn5hboVOV github.com/segmentio/encoding v0.4.0/go.mod h1:/d03Cd8PoaDeceuhUUUQWjU0KhWjrmYrWPgtJHYZSnI= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU= +github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.lsp.dev/jsonrpc2 v0.10.0 h1:Pr/YcXJoEOTMc/b6OTmcR1DPJ3mSWl/SWiU1Cct6VmI= go.lsp.dev/jsonrpc2 v0.10.0/go.mod h1:fmEzIdXPi/rf6d4uFcayi8HpFP1nBF99ERP1htC72Ac= @@ -79,8 +81,6 @@ go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= -golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= @@ -92,8 +92,6 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= -golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= -golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -110,8 +108,6 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc 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.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -123,16 +119,12 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= -golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE= -golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg= golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/internal/action/action_test.go b/internal/action/action_test.go index d45575d..5de2544 100644 --- a/internal/action/action_test.go +++ b/internal/action/action_test.go @@ -4,6 +4,7 @@ import ( "testing" "github.com/romshark/templier/internal/action" + "github.com/stretchr/testify/require" ) diff --git a/internal/broadcaster/broadcaster_test.go b/internal/broadcaster/broadcaster_test.go index 4a38c2c..e78b6d8 100644 --- a/internal/broadcaster/broadcaster_test.go +++ b/internal/broadcaster/broadcaster_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/romshark/templier/internal/broadcaster" + "github.com/stretchr/testify/require" ) diff --git a/internal/config/config.go b/internal/config/config.go index 9af5c0f..9beae9f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -15,9 +15,10 @@ import ( "strings" "time" - "github.com/gobwas/glob" "github.com/romshark/templier/internal/action" "github.com/romshark/templier/internal/log" + + "github.com/gobwas/glob" "github.com/romshark/yamagiconf" ) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index a7bd040..d457786 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/romshark/templier/internal/config" - "github.com/romshark/yamagiconf" + "github.com/romshark/yamagiconf" "github.com/stretchr/testify/require" ) diff --git a/internal/debounce/debounce_test.go b/internal/debounce/debounce_test.go index d8643d8..8828d88 100644 --- a/internal/debounce/debounce_test.go +++ b/internal/debounce/debounce_test.go @@ -8,6 +8,7 @@ import ( "time" "github.com/romshark/templier/internal/debounce" + "github.com/stretchr/testify/require" ) diff --git a/internal/filereg/filereg_test.go b/internal/filereg/filereg_test.go index d4a4cd4..48fc41b 100644 --- a/internal/filereg/filereg_test.go +++ b/internal/filereg/filereg_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/romshark/templier/internal/filereg" + "github.com/stretchr/testify/require" ) diff --git a/internal/server/server.go b/internal/server/server.go index 5e60fdb..613d683 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -14,12 +14,13 @@ import ( "strings" "time" - "github.com/andybalholm/brotli" - "github.com/gorilla/websocket" "github.com/romshark/templier/internal/broadcaster" "github.com/romshark/templier/internal/config" "github.com/romshark/templier/internal/log" "github.com/romshark/templier/internal/statetrack" + + "github.com/andybalholm/brotli" + "github.com/gorilla/websocket" ) const ( diff --git a/internal/statetrack/statetrack_test.go b/internal/statetrack/statetrack_test.go index 7a548d2..0b3fbab 100644 --- a/internal/statetrack/statetrack_test.go +++ b/internal/statetrack/statetrack_test.go @@ -5,6 +5,7 @@ import ( "testing" "github.com/romshark/templier/internal/statetrack" + "github.com/stretchr/testify/require" ) diff --git a/internal/watcher/watcher.go b/internal/watcher/watcher.go index 6594699..8b704fb 100644 --- a/internal/watcher/watcher.go +++ b/internal/watcher/watcher.go @@ -12,10 +12,11 @@ import ( "strings" "sync" - "github.com/fsnotify/fsnotify" - "github.com/gobwas/glob" "github.com/romshark/templier/internal/filereg" "github.com/romshark/templier/internal/log" + + "github.com/fsnotify/fsnotify" + "github.com/gobwas/glob" ) // Watcher is a recursive file watcher. diff --git a/main.go b/main.go index 02f80fd..90f35e3 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,6 @@ import ( "sync/atomic" "time" - "github.com/gobwas/glob" "github.com/romshark/templier/internal/action" "github.com/romshark/templier/internal/broadcaster" "github.com/romshark/templier/internal/cmdrun" @@ -33,6 +32,7 @@ import ( "github.com/romshark/templier/internal/watcher" "github.com/fsnotify/fsnotify" + "github.com/gobwas/glob" ) const ServerHealthPreflightWaitInterval = 100 * time.Millisecond