File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ GOVOLUMES= -v $(shell pwd)/.cache:/go/cache:delegated,z \
126126 -v $(shell pwd) /.pkg:/go/pkg:delegated,z \
127127 -v $(shell pwd) :/go/src/github.com/cortexproject/cortex:delegated,z
128128
129- exes $(EXES ) protos $(PROTO_GOS ) lint test cover shell mod-check check-protos web-build web-pre web-deploy doc check- modernize : build-image/$(UPTODATE )
129+ exes $(EXES ) protos $(PROTO_GOS ) lint test cover shell mod-check check-protos web-build web-pre web-deploy doc modernize : build-image/$(UPTODATE )
130130 @mkdir -p $(shell pwd) /.pkg
131131 @mkdir -p $(shell pwd) /.cache
132132 @echo
@@ -251,6 +251,9 @@ web-build: web-pre
251251web-deploy :
252252 ./tools/website/web-deploy.sh
253253
254+ modernize :
255+ go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.20.0 -fix ./...
256+
254257# Generates the config file documentation.
255258doc : clean-doc
256259 go run -tags slicelabels ./tools/doc-generator ./docs/configuration/config-file-reference.template > ./docs/configuration/config-file-reference.md
@@ -308,9 +311,6 @@ clean-white-noise:
308311check-white-noise : clean-white-noise
309312 @git diff --exit-code --quiet -- ' *.md' || (echo " Please remove trailing whitespaces running 'make clean-white-noise'" && false)
310313
311- modernize :
312- go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.20.0 -fix ./...
313-
314314check-modernize : modernize
315315 @git diff --exit-code -- . || (echo " Please modernize running 'make modernize'" && false)
316316
You can’t perform that action at this time.
0 commit comments