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 \
126
126
-v $(shell pwd) /.pkg:/go/pkg:delegated,z \
127
127
-v $(shell pwd) :/go/src/github.com/cortexproject/cortex:delegated,z
128
128
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 )
130
130
@mkdir -p $(shell pwd) /.pkg
131
131
@mkdir -p $(shell pwd) /.cache
132
132
@echo
@@ -251,6 +251,9 @@ web-build: web-pre
251
251
web-deploy :
252
252
./tools/website/web-deploy.sh
253
253
254
+ modernize :
255
+ go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.20.0 -fix ./...
256
+
254
257
# Generates the config file documentation.
255
258
doc : clean-doc
256
259
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:
308
311
check-white-noise : clean-white-noise
309
312
@git diff --exit-code --quiet -- ' *.md' || (echo " Please remove trailing whitespaces running 'make clean-white-noise'" && false)
310
313
311
- modernize :
312
- go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.20.0 -fix ./...
313
-
314
314
check-modernize : modernize
315
315
@git diff --exit-code -- . || (echo " Please modernize running 'make modernize'" && false)
316
316
You can’t perform that action at this time.
0 commit comments