Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ fmt: common/gofmt common/goimports common/gofumpt
.PHONY: modernize
modernize:
$(GOCMD) run \
golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest \
-fix -test -v ./...
golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than using go run here, how about we add the package as a tools dependency and use it like the several other tools we already use?
That would allow us to lock into a specific version rather than using latest.

Copy link
Member Author

@paulojmdias paulojmdias Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads-up @dmathieu 🙏

Makes total sense, done in 732b1f3

-fix -test -v -any -bloop -fmtappendf -forvar -mapsloop -minmax -newexpr -omitzero -plusbuild \
-rangeint -reflecttypefor -slicescontains -slicessort -stditerators -stringscut \
-stringscutprefix -stringsseq -stringsbuilder -testingcontext -waitgroup ./...

.PHONY: tidy
tidy:
Expand Down
Loading