Open bkane-msft opened 1 month ago
Hi @bkane-msft! Yeah PR's are definitely welcome. For a moment I was confused, as sorting dependencies is a large part of the value of this tool, but I realized that only happens if you're using the go-modtool merge
subcommand, which most projects probably have no use for. The sorting should definitely also take place in go-modtool fmt
.
Thanks @shoenig - I'll try to work on it in spare time. Until then this is easily worked around by running go mod tidy
(whcih sorts lines within stanzas), after go-modtool fmt
I'd find it handy to sort lines inside
require
blocks (it'll help me scan my dependencies easier).Current:
Proposed:
Would you be open to a PR for this?