Skip to content

Commit

Permalink
include cortexproject#5882 to changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>

try fixing lint

Signed-off-by: Ben Ye <[email protected]>

try again

Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 committed Apr 24, 2024
1 parent 8953fbd commit df4bc66
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
14 changes: 10 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ linters-settings:
exclude: ./.errcheck-exclude
goimports:
local-prefixes: "github.com/cortexproject/cortex"
revive:
severity: error # We only want critical issues.

depguard:
list-type: blacklist
include-go-root: true
packages-with-error-message:
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
rules:
main:
list-mode: lax
files:
- $all
deny:
- pkg: "github.com/go-kit/kit/log"
desc: Use github.com/go-kit/log instead of github.com/go-kit/kit/log"

run:
timeout: 5m
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## 1.16.1 2024-04-23

* [ENHANCEMENT] Upgraded Docker base images to `alpine:3.18`. #5684
* [ENHANCEMENT] Upgrade to go 1.21.9 #5879
* [ENHANCEMENT] Upgrade to go 1.21.9 #5879 #5882

## 1.16.0 2023-11-20

Expand Down
2 changes: 1 addition & 1 deletion build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN GOARCH=$(go env GOARCH) && \
chmod +x shfmt && \
mv shfmt /usr/bin

RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.51.2
RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.54.1

ENV HUGO_VERSION=v0.101.0
RUN go install github.com/client9/misspell/cmd/[email protected] &&\
Expand Down
5 changes: 3 additions & 2 deletions pkg/querier/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ package querier

import (
"context"
"github.com/cortexproject/cortex/pkg/cortexpb"
"github.com/cortexproject/cortex/pkg/util/limiter"

"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/scrape"
"github.com/stretchr/testify/mock"

"github.com/cortexproject/cortex/pkg/cortexpb"
"github.com/cortexproject/cortex/pkg/ingester/client"
"github.com/cortexproject/cortex/pkg/prom1/storage/metric"
"github.com/cortexproject/cortex/pkg/util/flagext"
"github.com/cortexproject/cortex/pkg/util/limiter"
"github.com/cortexproject/cortex/pkg/util/validation"
)

Expand Down

0 comments on commit df4bc66

Please sign in to comment.