Skip to content

Commit 8852bde

Browse files
authored
build(deps): bump go version & several deps (#187)
* build(deps): bump go version & several deps * fix: go 1.24 vet errors * chore(metadata): remove commented line
1 parent c02e42e commit 8852bde

9 files changed

Lines changed: 73 additions & 77 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
- cron: '0 4 * * 6'
2121

2222
env:
23-
GO_VERSION: '1.23.0'
23+
GO_VERSION: '1.24.2'
2424

2525
jobs:
2626
analyze:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
env:
2828
REGISTRY: ghcr.io
2929
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}
30-
GO_VERSION: '1.23.0'
30+
GO_VERSION: '1.24.2'
3131

3232
permissions:
3333
contents: write

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# build app
2-
FROM golang:1.23-alpine3.20 AS app-builder
2+
FROM golang:1.24.2-alpine3.21 AS app-builder
33

44
WORKDIR /src
55

ci.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# build base
2-
FROM --platform=$BUILDPLATFORM golang:1.23-alpine3.20 AS app-base
2+
FROM --platform=$BUILDPLATFORM golang:1.24.2-alpine3.21 AS app-base
33

44
WORKDIR /src
55

go.mod

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
module github.com/nuxencs/seasonpackarr
22

3-
go 1.23.0
4-
5-
toolchain go1.24.1
3+
go 1.24.2
64

75
require (
86
github.com/anacrolix/torrent v1.58.1
9-
github.com/autobrr/go-qbittorrent v1.11.0
7+
github.com/autobrr/go-qbittorrent v1.14.0
108
github.com/dlclark/regexp2 v1.11.5
119
github.com/gin-contrib/cors v1.7.5
1210
github.com/gin-contrib/requestid v1.0.5
13-
github.com/gin-gonic/gin v1.10.0
11+
github.com/gin-gonic/gin v1.10.1
1412
github.com/google/uuid v1.6.0
15-
github.com/knadh/koanf/parsers/yaml v0.1.0
16-
github.com/knadh/koanf/providers/file v1.1.2
17-
github.com/knadh/koanf/v2 v2.1.2
18-
github.com/moistari/rls v0.5.12
13+
github.com/knadh/koanf/parsers/yaml v1.0.0
14+
github.com/knadh/koanf/providers/file v1.2.0
15+
github.com/knadh/koanf/v2 v2.2.0
16+
github.com/moistari/rls v0.5.13
1917
github.com/mrobinsn/go-tvmaze v1.2.1
2018
github.com/pkg/errors v0.9.1
2119
github.com/puzpuzpuz/xsync/v3 v3.5.1
@@ -38,9 +36,9 @@ require (
3836
github.com/bytedance/sonic/loader v0.2.4 // indirect
3937
github.com/cloudwego/base64x v0.1.5 // indirect
4038
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
41-
github.com/fsnotify/fsnotify v1.8.0 // indirect
42-
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
43-
github.com/gin-contrib/sse v1.0.0 // indirect
39+
github.com/fsnotify/fsnotify v1.9.0 // indirect
40+
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
41+
github.com/gin-contrib/sse v1.1.0 // indirect
4442
github.com/go-playground/locales v0.14.1 // indirect
4543
github.com/go-playground/universal-translator v0.18.1 // indirect
4644
github.com/go-playground/validator/v10 v10.26.0 // indirect
@@ -50,8 +48,8 @@ require (
5048
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5149
github.com/json-iterator/go v1.1.12 // indirect
5250
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
53-
github.com/knadh/koanf/maps v0.1.1 // indirect
54-
github.com/knadh/koanf/providers/structs v0.1.0
51+
github.com/knadh/koanf/maps v0.1.2 // indirect
52+
github.com/knadh/koanf/providers/structs v1.0.0
5553
github.com/leodido/go-urn v1.4.0 // indirect
5654
github.com/mattn/go-colorable v0.1.14 // indirect
5755
github.com/mattn/go-isatty v0.0.20 // indirect
@@ -63,21 +61,21 @@ require (
6361
github.com/mr-tron/base58 v1.2.0 // indirect
6462
github.com/multiformats/go-multihash v0.2.3 // indirect
6563
github.com/multiformats/go-varint v0.0.7 // indirect
66-
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
64+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
6765
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
6866
github.com/sirupsen/logrus v1.9.3 // indirect
6967
github.com/spaolacci/murmur3 v1.1.0 // indirect
7068
github.com/spf13/pflag v1.0.6 // indirect
7169
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
7270
github.com/ugorji/go/codec v1.2.12 // indirect
73-
golang.org/x/arch v0.15.0 // indirect
74-
golang.org/x/crypto v0.36.0 // indirect
75-
golang.org/x/exp v0.0.0-20250228200357-dead58393ab7 // indirect
76-
golang.org/x/net v0.38.0 // indirect
77-
golang.org/x/sync v0.12.0 // indirect
78-
golang.org/x/sys v0.31.0 // indirect
79-
golang.org/x/text v0.23.0 // indirect
71+
golang.org/x/arch v0.17.0 // indirect
72+
golang.org/x/crypto v0.38.0 // indirect
73+
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect
74+
golang.org/x/net v0.40.0 // indirect
75+
golang.org/x/sync v0.14.0 // indirect
76+
golang.org/x/sys v0.33.0 // indirect
77+
golang.org/x/text v0.25.0 // indirect
8078
google.golang.org/protobuf v1.36.6 // indirect
8179
gopkg.in/yaml.v3 v3.0.1 // indirect
82-
lukechampine.com/blake3 v1.4.0 // indirect
80+
lukechampine.com/blake3 v1.4.1 // indirect
8381
)

go.sum

Lines changed: 40 additions & 42 deletions
Large diffs are not rendered by default.

internal/http/processor.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ func (p *processor) processSeasonPack() (domain.StatusCode, error) {
250250
p.log.Info().Msgf("using %s client serving at %s:%d", clientName, clientCfg.Host, clientCfg.Port)
251251

252252
if err := p.getClient(clientCfg, clientName); err != nil {
253-
return domain.StatusGetClientError, errors.Wrap(err, domain.StatusGetClientError.String())
253+
return domain.StatusGetClientError, fmt.Errorf("%s: %w", domain.StatusGetClientError, err)
254254
}
255255

256256
entries, err := p.getAllTorrents(clientName)
257257
if err != nil {
258-
return domain.StatusGetTorrentsError, errors.Wrap(err, domain.StatusGetTorrentsError.String())
258+
return domain.StatusGetTorrentsError, fmt.Errorf("%s: %w", domain.StatusGetTorrentsError, err)
259259
}
260260

261261
requestRls := rls.ParseString(p.req.Name)
@@ -325,7 +325,7 @@ func (p *processor) processSeasonPack() (domain.StatusCode, error) {
325325
if p.cfg.Config.SmartMode {
326326
totalEps, err := p.meta.EpisodesInSeason(requestRls)
327327
if err != nil {
328-
return domain.StatusEpisodeCountError, errors.Wrap(err, domain.StatusEpisodeCountError.String())
328+
return domain.StatusEpisodeCountError, fmt.Errorf("%s: %w", domain.StatusEpisodeCountError, err)
329329
}
330330

331331
foundEps := len(epsSet)
@@ -433,20 +433,20 @@ func (p *processor) parseTorrent() (domain.StatusCode, error) {
433433

434434
torrentBytes, err := torrents.DecodeTorrentBytes(p.req.Torrent)
435435
if err != nil {
436-
return domain.StatusDecodeTorrentBytesError, errors.Wrap(err, domain.StatusDecodeTorrentBytesError.String())
436+
return domain.StatusDecodeTorrentBytesError, fmt.Errorf("%s: %w", domain.StatusDecodeTorrentBytesError, err)
437437
}
438438
p.req.Torrent = torrentBytes
439439

440440
torrentInfo, err := torrents.Info(p.req.Torrent)
441441
if err != nil {
442-
return domain.StatusParseTorrentInfoError, errors.Wrap(err, domain.StatusParseTorrentInfoError.String())
442+
return domain.StatusParseTorrentInfoError, fmt.Errorf("%s: %w", domain.StatusParseTorrentInfoError, err)
443443
}
444444
parsedPackName := torrentInfo.BestName()
445445
p.log.Debug().Msgf("parsed season pack name: %s", parsedPackName)
446446

447447
torrentEps, err := torrents.Episodes(torrentInfo)
448448
if err != nil {
449-
return domain.StatusGetEpisodesError, errors.Wrap(err, domain.StatusGetEpisodesError.String())
449+
return domain.StatusGetEpisodesError, fmt.Errorf("%s: %w", domain.StatusGetEpisodesError, err)
450450
}
451451
for _, torrentEp := range torrentEps {
452452
p.log.Debug().Msgf("found episode in pack: name(%s), size(%d)", torrentEp.Path, torrentEp.Size)

internal/metadata/tvdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (t *tvdbClient) search(title string, year int) (string, error) {
193193
func (t *tvdbClient) episodesInSeason(release rls.Release) (int, error) {
194194
tvdbID, err := t.search(release.Title, release.Year)
195195
if err != nil {
196-
return 0, errors.Wrap(err, fmt.Sprintf("failed to find show %q on tvdb", release.Title))
196+
return 0, fmt.Errorf("failed to find show %q on tvdb: %w", release.Title, err)
197197
}
198198

199199
resp, err := t.makeAPIRequest(fmt.Sprintf("/series/%s/episodes/default?page=0&season=%d", tvdbID, release.Series))

internal/metadata/tvmaze.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (t *tvmazeClient) episodesInSeason(release rls.Release) (int, error) {
2424

2525
show, err := tvmaze.DefaultClient.GetShow(rls.MustNormalize(release.Title))
2626
if err != nil {
27-
return 0, errors.Wrap(err, fmt.Sprintf("failed to find show %q on tvmaze", release.Title))
27+
return 0, fmt.Errorf("failed to find show %q on tvmaze: %w", release.Title, err)
2828
}
2929

3030
episodes, err := show.GetEpisodes()

0 commit comments

Comments
 (0)