Skip to content

Commit d9ad409

Browse files
authored
Upgrade dependencies (#250)
* Upgrade go deps * Update npm deps * Add webui codegen * Refactor check action * Rebuild web UI * Fix linting error
1 parent 6e49b87 commit d9ad409

File tree

21 files changed

+2336
-2132
lines changed

21 files changed

+2336
-2132
lines changed

.github/workflows/checks.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
- uses: cachix/install-nix-action@v26
1717
with:
1818
github_access_token: ${{ secrets.GITHUB_TOKEN }}
19-
- name: Run linters
19+
- name: Install web UI
2020
run: |
2121
nix develop --ignore-environment --command task install-webui
22+
- name: Run linters
23+
run: |
2224
nix develop --ignore-environment --keep HOME . --command task lint
2325
2426
test:
@@ -29,9 +31,11 @@ jobs:
2931
- uses: cachix/install-nix-action@v26
3032
with:
3133
github_access_token: ${{ secrets.GITHUB_TOKEN }}
32-
- name: Run tests
34+
- name: Install web UI
3335
run: |
3436
nix develop --ignore-environment --command task install-webui
37+
- name: Run tests
38+
run: |
3539
nix develop --ignore-environment --keep HOME . --command task test
3640
3741
# This job runs all code generations and builds the WebUI, to check that everything is correctly committed
@@ -61,7 +65,7 @@ jobs:
6165
- uses: cachix/install-nix-action@v26
6266
with:
6367
github_access_token: ${{ secrets.GITHUB_TOKEN }}
64-
- name: Install web app, apply database migrations, generate code and build web app
68+
- name: Install web UI, apply database migrations, generate code and build web app
6569
run: |
6670
nix develop --ignore-environment --command task install-webui
6771
nix develop --ignore-environment --keep HOME --keep POSTGRES_PASSWORD . --command task migrate

Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ tasks:
1111
- protoc --go_out=. ./internal/protobuf/bitmagnet.proto
1212
- go run github.com/vektra/mockery/v2
1313
- go run . classifier schema --format json > ./bitmagnet.io/schemas/classifier-0.1.json
14+
- cd webui && npm run graphql:codegen
1415

1516
lint:
1617
cmds:

go.mod

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,65 @@ module github.com/bitmagnet-io/bitmagnet
33
go 1.22
44

55
require (
6-
github.com/99designs/gqlgen v0.17.43
6+
github.com/99designs/gqlgen v0.17.45
77
github.com/abice/go-enum v0.6.0
88
github.com/adrg/xdg v0.4.0
99
github.com/agnivade/levenshtein v1.1.1
10-
github.com/anacrolix/dht/v2 v2.21.0
10+
github.com/anacrolix/dht/v2 v2.21.1
1111
github.com/anacrolix/missinggo/v2 v2.7.3
12-
github.com/anacrolix/torrent v1.53.3
13-
github.com/bits-and-blooms/bloom/v3 v3.6.0
12+
github.com/anacrolix/torrent v1.55.0
13+
github.com/bits-and-blooms/bloom/v3 v3.7.0
1414
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb
1515
github.com/frankban/quicktest v1.14.6
1616
github.com/gin-gonic/gin v1.9.1
17-
github.com/go-playground/validator/v10 v10.17.0
18-
github.com/go-resty/resty/v2 v2.11.0
19-
github.com/google/cel-go v0.20.0
17+
github.com/go-playground/validator/v10 v10.20.0
18+
github.com/go-resty/resty/v2 v2.12.0
19+
github.com/google/cel-go v0.20.1
2020
github.com/grafana/pyroscope-go/godeltaprof v0.1.7
2121
github.com/hashicorp/golang-lru/v2 v2.0.7
2222
github.com/hedhyw/rex v0.6.0
23-
github.com/hellofresh/health-go/v5 v5.5.2
23+
github.com/hellofresh/health-go/v5 v5.5.3
2424
github.com/iancoleman/strcase v0.3.0
25-
github.com/jackc/pgx/v5 v5.5.4
26-
github.com/jedib0t/go-pretty/v6 v6.5.3
25+
github.com/jackc/pgx/v5 v5.5.5
26+
github.com/jedib0t/go-pretty/v6 v6.5.8
2727
github.com/joho/godotenv v1.5.1
2828
github.com/mgdigital/gorm-cache/v2 v2.0.0-20230912113927-f2a8dd92a386
2929
github.com/mitchellh/mapstructure v1.5.0
3030
github.com/mozillazg/go-unidecode v0.2.0
31-
github.com/pressly/goose/v3 v3.17.0
32-
github.com/prometheus/client_golang v1.18.0
33-
github.com/rs/cors v1.10.1
34-
github.com/rs/cors/wrapper/gin v0.0.0-20240115101214-9297f1560644
35-
github.com/schollz/progressbar/v3 v3.14.1
36-
github.com/stretchr/testify v1.8.4
31+
github.com/pressly/goose/v3 v3.20.0
32+
github.com/prometheus/client_golang v1.19.0
33+
github.com/rs/cors v1.11.0
34+
github.com/rs/cors/wrapper/gin v0.0.0-20240429123903-3d336ea9b505
35+
github.com/schollz/progressbar/v3 v3.14.2
36+
github.com/stretchr/testify v1.9.0
3737
github.com/tylertreat/BoomFilters v0.0.0-20210315201527-1a82519a3e43
38-
github.com/urfave/cli/v2 v2.27.1
38+
github.com/urfave/cli/v2 v2.27.2
3939
github.com/vektah/gqlparser/v2 v2.5.11
40-
github.com/vektra/mockery/v2 v2.40.1
40+
github.com/vektra/mockery/v2 v2.43.0
4141
github.com/xeipuuv/gojsonschema v1.2.0
42-
go.uber.org/fx v1.20.1
43-
go.uber.org/zap v1.26.0
44-
golang.org/x/sync v0.6.0
45-
golang.org/x/sys v0.18.0
42+
go.uber.org/fx v1.21.1
43+
go.uber.org/zap v1.27.0
44+
golang.org/x/sync v0.7.0
45+
golang.org/x/sys v0.19.0
4646
golang.org/x/text v0.14.0
4747
golang.org/x/time v0.5.0
48-
google.golang.org/protobuf v1.33.0
48+
google.golang.org/protobuf v1.34.0
4949
gopkg.in/yaml.v3 v3.0.1
50-
gorm.io/driver/postgres v1.5.4
51-
gorm.io/gen v0.3.25
52-
gorm.io/gorm v1.25.5
53-
gorm.io/plugin/dbresolver v1.5.0
50+
gorm.io/driver/postgres v1.5.7
51+
gorm.io/gen v0.3.26
52+
gorm.io/gorm v1.25.10
53+
gorm.io/plugin/dbresolver v1.5.1
5454
)
5555

5656
require (
57+
filippo.io/edwards25519 v1.1.0 // indirect
5758
github.com/Masterminds/goutils v1.1.1 // indirect
5859
github.com/Masterminds/semver/v3 v3.2.1 // indirect
5960
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
6061
github.com/alecthomas/atomic v0.1.0-alpha2 // indirect
6162
github.com/anacrolix/chansync v0.4.0 // indirect
62-
github.com/anacrolix/generics v0.0.0-20230911070922-5dd7545c6b13 // indirect
63-
github.com/anacrolix/log v0.14.6-0.20231202035202-ed7a02cad0b4 // indirect
63+
github.com/anacrolix/generics v0.0.1 // indirect
64+
github.com/anacrolix/log v0.15.2 // indirect
6465
github.com/anacrolix/missinggo v1.3.0 // indirect
6566
github.com/anacrolix/missinggo/perf v1.0.0 // indirect
6667
github.com/anacrolix/multiless v0.3.1-0.20221221005021-2d12701f83f7 // indirect
@@ -71,12 +72,13 @@ require (
7172
github.com/beorn7/perks v1.0.1 // indirect
7273
github.com/bits-and-blooms/bitset v1.13.0 // indirect
7374
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect
74-
github.com/bytedance/sonic v1.10.2 // indirect
75-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
76-
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
77-
github.com/chenzhuoyu/iasm v0.9.1 // indirect
75+
github.com/bytedance/sonic v1.11.6 // indirect
76+
github.com/bytedance/sonic/loader v0.1.1 // indirect
77+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
7878
github.com/chigopher/pathlib v0.19.1 // indirect
79-
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
79+
github.com/cloudwego/base64x v0.1.4 // indirect
80+
github.com/cloudwego/iasm v0.2.0 // indirect
81+
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
8082
github.com/d4l3k/messagediff v1.2.1 // indirect
8183
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
8284
github.com/edsrzf/mmap-go v1.1.0 // indirect
@@ -85,10 +87,9 @@ require (
8587
github.com/gin-contrib/sse v0.1.0 // indirect
8688
github.com/go-playground/locales v0.14.1 // indirect
8789
github.com/go-playground/universal-translator v0.18.1 // indirect
88-
github.com/go-sql-driver/mysql v1.7.1 // indirect
90+
github.com/go-sql-driver/mysql v1.8.1 // indirect
8991
github.com/goccy/go-json v0.10.2 // indirect
9092
github.com/golang/mock v1.6.0 // indirect
91-
github.com/golang/protobuf v1.5.4 // indirect
9293
github.com/google/go-cmp v0.6.0 // indirect
9394
github.com/google/uuid v1.6.0 // indirect
9495
github.com/gorilla/websocket v1.5.1 // indirect
@@ -103,72 +104,71 @@ require (
103104
github.com/jinzhu/inflection v1.0.0 // indirect
104105
github.com/jinzhu/now v1.1.5 // indirect
105106
github.com/json-iterator/go v1.1.12 // indirect
106-
github.com/klauspost/compress v1.17.4 // indirect
107-
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
107+
github.com/klauspost/compress v1.17.8 // indirect
108+
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
108109
github.com/kr/pretty v0.3.1 // indirect
109110
github.com/kr/text v0.2.0 // indirect
110111
github.com/labstack/gommon v0.4.2 // indirect
111-
github.com/leodido/go-urn v1.2.4 // indirect
112+
github.com/leodido/go-urn v1.4.0 // indirect
112113
github.com/magiconair/properties v1.8.7 // indirect
113114
github.com/mattn/go-colorable v0.1.13 // indirect
114115
github.com/mattn/go-isatty v0.0.20 // indirect
115116
github.com/mattn/go-runewidth v0.0.15 // indirect
116117
github.com/mattn/goveralls v0.0.12 // indirect
118+
github.com/mfridman/interpolate v0.0.2 // indirect
117119
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
118120
github.com/mitchellh/copystructure v1.2.0 // indirect
119121
github.com/mitchellh/go-homedir v1.1.0 // indirect
120122
github.com/mitchellh/reflectwalk v1.0.2 // indirect
121123
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
122124
github.com/modern-go/reflect2 v1.0.2 // indirect
123-
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
125+
github.com/pelletier/go-toml/v2 v2.2.1 // indirect
124126
github.com/pkg/errors v0.9.1 // indirect
125127
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
126-
github.com/prometheus/client_model v0.5.0 // indirect
127-
github.com/prometheus/common v0.46.0 // indirect
128-
github.com/prometheus/procfs v0.12.0 // indirect
128+
github.com/prometheus/client_model v0.6.1 // indirect
129+
github.com/prometheus/common v0.53.0 // indirect
130+
github.com/prometheus/procfs v0.14.0 // indirect
129131
github.com/rivo/uniseg v0.4.7 // indirect
130132
github.com/rogpeppe/go-internal v1.11.0 // indirect
131133
github.com/rs/dnscache v0.0.0-20230804202142-fc85eb664529 // indirect
132-
github.com/rs/zerolog v1.31.0 // indirect
134+
github.com/rs/zerolog v1.32.0 // indirect
133135
github.com/russross/blackfriday/v2 v2.1.0 // indirect
134136
github.com/sagikazarmark/locafero v0.4.0 // indirect
135137
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
136138
github.com/sethvargo/go-retry v0.2.4 // indirect
137-
github.com/shopspring/decimal v1.3.1 // indirect
138-
github.com/sosodev/duration v1.2.0 // indirect
139+
github.com/shopspring/decimal v1.4.0 // indirect
140+
github.com/sosodev/duration v1.3.0 // indirect
139141
github.com/sourcegraph/conc v0.3.0 // indirect
140142
github.com/spf13/afero v1.11.0 // indirect
141143
github.com/spf13/cast v1.6.0 // indirect
142144
github.com/spf13/cobra v1.8.0 // indirect
143145
github.com/spf13/pflag v1.0.5 // indirect
144146
github.com/spf13/viper v1.18.2 // indirect
145-
github.com/stoewer/go-strcase v1.2.0 // indirect
146-
github.com/stretchr/objx v0.5.0 // indirect
147+
github.com/stoewer/go-strcase v1.3.0 // indirect
148+
github.com/stretchr/objx v0.5.2 // indirect
147149
github.com/subosito/gotenv v1.6.0 // indirect
148150
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
149151
github.com/ugorji/go/codec v1.2.12 // indirect
150152
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
151153
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
152-
github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e // indirect
153-
go.opentelemetry.io/otel v1.22.0 // indirect
154-
go.opentelemetry.io/otel/trace v1.22.0 // indirect
155-
go.uber.org/atomic v1.10.0 // indirect
154+
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect
155+
go.opentelemetry.io/otel v1.26.0 // indirect
156+
go.opentelemetry.io/otel/trace v1.26.0 // indirect
156157
go.uber.org/dig v1.17.1 // indirect
157-
go.uber.org/goleak v1.2.1 // indirect
158158
go.uber.org/multierr v1.11.0 // indirect
159159
golang.org/x/arch v0.7.0 // indirect
160-
golang.org/x/crypto v0.21.0 // indirect
161-
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect
162-
golang.org/x/mod v0.14.0 // indirect
163-
golang.org/x/net v0.23.0 // indirect
164-
golang.org/x/term v0.18.0 // indirect
165-
golang.org/x/tools v0.17.0 // indirect
160+
golang.org/x/crypto v0.22.0 // indirect
161+
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect
162+
golang.org/x/mod v0.17.0 // indirect
163+
golang.org/x/net v0.24.0 // indirect
164+
golang.org/x/term v0.19.0 // indirect
165+
golang.org/x/tools v0.20.0 // indirect
166166
golang.org/x/tools/cmd/cover v0.1.0-deprecated // indirect
167-
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
168-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231211222908-989df2bf70f3 // indirect
167+
google.golang.org/genproto/googleapis/api v0.0.0-20240429193739-8cf5692501f6 // indirect
168+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 // indirect
169169
gopkg.in/ini.v1 v1.67.0 // indirect
170170
gopkg.in/yaml.v2 v2.4.0 // indirect
171171
gorm.io/datatypes v1.2.0 // indirect
172-
gorm.io/driver/mysql v1.5.2 // indirect
172+
gorm.io/driver/mysql v1.5.6 // indirect
173173
gorm.io/hints v1.1.2 // indirect
174174
)

0 commit comments

Comments
 (0)