Skip to content

Commit 1a98e3a

Browse files
committed
golang: upgraded to v1.21 and bumped several libs
1 parent cf54477 commit 1a98e3a

File tree

8 files changed

+177
-157
lines changed

8 files changed

+177
-157
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Set up Go
5757
uses: actions/setup-go@v4
5858
with:
59-
go-version: '1.20'
59+
go-version: '1.21'
6060

6161
- name: Import GPG key
6262
uses: crazy-max/ghaction-import-gpg@v5
@@ -67,7 +67,7 @@ jobs:
6767
- name: Install goreleaser
6868
uses: goreleaser/goreleaser-action@v4
6969
with:
70-
version: v1.18.2
70+
version: v1.21.2
7171
install-only: true
7272

7373
- name: Run goreleaser

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install Go
3030
uses: actions/setup-go@v4
3131
with:
32-
go-version: '1.20'
32+
go-version: '1.21'
3333

3434
- name: Lint
3535
if: ${{ matrix.os == 'ubuntu-22.04' }}

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ linters:
3232
- gomnd
3333
- lll
3434
- dupl
35+
- depguard
36+
- tagalign
3537

3638
linters-settings:
3739
funlen:

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ REPOSITORY := mvisonneau/$(NAME)
77
.PHONY: fmt
88
fmt: ## Format source code
99
go run mvdan.cc/gofumpt@v0.5.0 -w $(shell git ls-files **/*.go)
10-
go run github.com/daixiang0/gci@v0.10.1 write -s standard -s default -s "prefix(github.com/mvisonneau)" .
10+
go run github.com/daixiang0/gci@v0.11.2 write -s standard -s default -s "prefix(github.com/mvisonneau)" .
1111

1212
.PHONY: lint
1313
lint: ## Run all lint related tests upon the codebase
14-
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2 run -v --fast
14+
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.2 run -v --fast
1515

1616
.PHONY: test
1717
test: ## Run the tests against the codebase
@@ -40,7 +40,7 @@ release: ## Build & release the binaries (stable)
4040
.PHONY: protoc
4141
protoc: ## Generate golang from .proto files
4242
@command -v protoc 2>&1 >/dev/null || (echo "protoc needs to be available in PATH: https://github.com/protocolbuffers/protobuf/releases"; false)
43-
@command -v protoc-gen-go 2>&1 >/dev/null || go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
43+
@command -v protoc-gen-go 2>&1 >/dev/null || go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
4444
protoc \
4545
--go_out=. --go_opt=paths=source_relative \
4646
--go-grpc_out=. --go-grpc_opt=paths=source_relative \

go.mod

Lines changed: 40 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
module github.com/mvisonneau/gitlab-ci-pipelines-exporter
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/alicebob/miniredis/v2 v2.23.0
77
github.com/charmbracelet/bubbles v0.16.1
88
github.com/charmbracelet/bubbletea v0.24.2
9-
github.com/charmbracelet/lipgloss v0.7.1
9+
github.com/charmbracelet/lipgloss v0.8.0
1010
github.com/creasty/defaults v1.7.0
1111
github.com/go-logr/stdr v1.2.2
12-
github.com/go-playground/validator/v10 v10.14.1
12+
github.com/go-playground/validator/v10 v10.15.4
1313
github.com/go-redis/redis_rate/v10 v10.0.1
14-
github.com/google/uuid v1.3.0
14+
github.com/google/uuid v1.3.1
1515
github.com/heptiolabs/healthcheck v0.0.0-20211123025425-613501dd5deb
1616
github.com/imdario/mergo v0.3.16
1717
github.com/mvisonneau/go-helpers v0.0.1
18-
github.com/openlyinc/pointy v1.2.0
18+
github.com/openlyinc/pointy v1.2.1
1919
github.com/paulbellamy/ratecounter v0.2.0
2020
github.com/pkg/errors v0.9.1
21-
github.com/prometheus/client_golang v1.16.0
21+
github.com/prometheus/client_golang v1.17.0
2222
github.com/redis/go-redis/extra/redisotel/v9 v9.0.5
23-
github.com/redis/go-redis/v9 v9.0.5
23+
github.com/redis/go-redis/v9 v9.2.1
2424
github.com/sirupsen/logrus v1.9.3
25-
github.com/stretchr/testify v1.8.3
26-
github.com/uptrace/opentelemetry-go-extra/otellogrus v0.2.2
25+
github.com/stretchr/testify v1.8.4
26+
github.com/uptrace/opentelemetry-go-extra/otellogrus v0.2.3
2727
github.com/urfave/cli/v2 v2.25.7
28-
github.com/vmihailenco/msgpack/v5 v5.3.5
28+
github.com/vmihailenco/msgpack/v5 v5.4.0
2929
github.com/vmihailenco/taskq/memqueue/v4 v4.0.0-beta.4
3030
github.com/vmihailenco/taskq/redisq/v4 v4.0.0-beta.4
3131
github.com/vmihailenco/taskq/v4 v4.0.0-beta.4
32-
github.com/xanzy/go-gitlab v0.88.0
32+
github.com/xanzy/go-gitlab v0.92.3
3333
github.com/xeonx/timeago v1.0.0-rc5
34-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0
35-
go.opentelemetry.io/otel v1.16.0
36-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0
37-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0
38-
go.opentelemetry.io/otel/sdk v1.16.0
39-
go.opentelemetry.io/otel/trace v1.16.0
40-
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
34+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0
35+
go.opentelemetry.io/otel v1.19.0
36+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0
37+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0
38+
go.opentelemetry.io/otel/sdk v1.19.0
39+
go.opentelemetry.io/otel/trace v1.19.0
40+
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
4141
golang.org/x/time v0.3.0
42-
google.golang.org/grpc v1.56.1
43-
google.golang.org/protobuf v1.30.0
42+
google.golang.org/grpc v1.58.2
43+
google.golang.org/protobuf v1.31.0
4444
gopkg.in/yaml.v3 v3.0.1
4545
)
4646

4747
require (
4848
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
4949
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
5050
github.com/beorn7/perks v1.0.1 // indirect
51-
github.com/bsm/redislock v0.9.3 // indirect
51+
github.com/bsm/redislock v0.9.4 // indirect
5252
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
5353
github.com/cespare/xxhash/v2 v2.2.0 // indirect
5454
github.com/charmbracelet/harmonica v0.2.0 // indirect
@@ -64,46 +64,43 @@ require (
6464
github.com/go-playground/universal-translator v0.18.1 // indirect
6565
github.com/golang/protobuf v1.5.3 // indirect
6666
github.com/google/go-querystring v1.1.0 // indirect
67-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
67+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect
6868
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
6969
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
70-
github.com/hashicorp/golang-lru v0.5.4 // indirect
71-
github.com/klauspost/compress v1.16.6 // indirect
72-
github.com/kr/text v0.2.0 // indirect
70+
github.com/hashicorp/golang-lru v1.0.2 // indirect
71+
github.com/klauspost/compress v1.17.0 // indirect
7372
github.com/leodido/go-urn v1.2.4 // indirect
7473
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
7574
github.com/mattn/go-isatty v0.0.19 // indirect
7675
github.com/mattn/go-localereader v0.0.1 // indirect
77-
github.com/mattn/go-runewidth v0.0.14 // indirect
76+
github.com/mattn/go-runewidth v0.0.15 // indirect
7877
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
7978
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
8079
github.com/muesli/cancelreader v0.2.2 // indirect
8180
github.com/muesli/reflow v0.3.0 // indirect
82-
github.com/muesli/termenv v0.15.1 // indirect
81+
github.com/muesli/termenv v0.15.2 // indirect
8382
github.com/pmezard/go-difflib v1.0.0 // indirect
84-
github.com/prometheus/client_model v0.4.0 // indirect
83+
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
8584
github.com/prometheus/common v0.44.0 // indirect
86-
github.com/prometheus/procfs v0.11.0 // indirect
85+
github.com/prometheus/procfs v0.12.0 // indirect
8786
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.5 // indirect
8887
github.com/rivo/uniseg v0.4.4 // indirect
8988
github.com/russross/blackfriday/v2 v2.1.0 // indirect
90-
github.com/uptrace/opentelemetry-go-extra/otelutil v0.2.2 // indirect
89+
github.com/uptrace/opentelemetry-go-extra/otelutil v0.2.3 // indirect
9190
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
9291
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
9392
github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect
94-
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
95-
go.opentelemetry.io/otel/metric v1.16.0 // indirect
96-
go.opentelemetry.io/proto/otlp v0.20.0 // indirect
97-
golang.org/x/crypto v0.10.0 // indirect
98-
golang.org/x/net v0.11.0 // indirect
99-
golang.org/x/oauth2 v0.9.0 // indirect
93+
go.opentelemetry.io/otel/metric v1.19.0 // indirect
94+
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
95+
golang.org/x/crypto v0.13.0 // indirect
96+
golang.org/x/net v0.15.0 // indirect
97+
golang.org/x/oauth2 v0.12.0 // indirect
10098
golang.org/x/sync v0.3.0 // indirect
101-
golang.org/x/sys v0.9.0 // indirect
102-
golang.org/x/term v0.9.0 // indirect
103-
golang.org/x/text v0.10.0 // indirect
104-
google.golang.org/appengine v1.6.7 // indirect
105-
google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect
106-
google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect
107-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect
99+
golang.org/x/sys v0.12.0 // indirect
100+
golang.org/x/term v0.12.0 // indirect
101+
golang.org/x/text v0.13.0 // indirect
102+
google.golang.org/appengine v1.6.8 // indirect
103+
google.golang.org/genproto/googleapis/api v0.0.0-20230920204549-e6e6cdab5c13 // indirect
104+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect
108105
gopkg.in/DATA-DOG/go-sqlmock.v1 v1.3.0 // indirect
109106
)

0 commit comments

Comments
 (0)