chore: bump dependencies

This commit is contained in:
martabal 2024-01-01 01:43:35 +01:00
parent d6a4b3cc6c
commit c59a3d23d6
No known key found for this signature in database
GPG key ID: C00196E3148A52BD
4 changed files with 12 additions and 6 deletions

View file

@ -1,4 +1,4 @@
FROM golang:1.21-alpine3.18 AS builder FROM golang:1.21-alpine3.19 AS builder
WORKDIR /app WORKDIR /app
@ -7,7 +7,7 @@ COPY . .
RUN go build -o /go/bin/immich-exporter ./src RUN go build -o /go/bin/immich-exporter ./src
FROM alpine:3.18 FROM alpine:3.19
COPY --from=builder /go/bin/immich-exporter /go/bin/immich-exporter COPY --from=builder /go/bin/immich-exporter /go/bin/immich-exporter

View file

@ -1,14 +1,20 @@
build: build:
go build -o ./qbittorrent-exporter.out ./src go build -o ./qbittorrent-exporter.out ./src
dev : dev :
go run ./src go run ./src
dev-env : dev-env :
go run ./src -e go run ./src -e
format : format :
go fmt ./src go fmt ./src
lint: lint:
docker run --rm -v ./:/app -w /app golangci/golangci-lint:latest golangci-lint run -v docker run --rm -v ./:/app -w /app golangci/golangci-lint:latest golangci-lint run -v
test: test:
go test -v ./src/tests go test -v ./src/tests
update: update:
go get -u ./src && go mod tidy go get -u ./src && go mod tidy

2
go.mod
View file

@ -4,7 +4,7 @@ go 1.21
require ( require (
github.com/joho/godotenv v1.5.1 github.com/joho/godotenv v1.5.1
github.com/prometheus/client_golang v1.17.0 github.com/prometheus/client_golang v1.18.0
github.com/sirupsen/logrus v1.9.3 github.com/sirupsen/logrus v1.9.3
) )

4
go.sum
View file

@ -13,8 +13,8 @@ github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvls
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk=
github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= github.com/prometheus/client_golang v1.18.0/go.mod h1:T+GXkCk5wSJyOqMIzVgvvjFDlkOQntgjkJWKrN5txjA=
github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw=
github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI=
github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM=