Skip to content

Commit 577102d

Browse files
authored
delete make modernize warning message (#7024)
Signed-off-by: SungJin1212 <[email protected]>
1 parent 8d15b2d commit 577102d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
251251
web-deploy:
252252
./tools/website/web-deploy.sh
253253

254+
modernize:
255+
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/[email protected] -fix ./...
256+
254257
# Generates the config file documentation.
255258
doc: 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:
308311
check-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/[email protected] -fix ./...
313-
314314
check-modernize: modernize
315315
@git diff --exit-code -- . || (echo "Please modernize running 'make modernize'" && false)
316316

0 commit comments

Comments
 (0)