On Wed, Nov 7, 2018 at 7:43 PM Joseph Lorenzini <jalo...@gmail.com> wrote:
> If have a go.mod, goimports takes 30 seconds to run. If I remove the > go.mod, then goimports takes half a second to run. Is this expected? Is > goimports trying to do something with the packages found in go.mod? Is > there a way to configure goimports so it ignores go.mod? > That's not supposed to happen. It's hard to say what's going on with so little detail. Can you give us a concrete go.mod and input.go file that causes 'goimports input.go' to take 30 seconds? It looks like we dropped the ball and did not commit https://go-review.googlesource.com/c/tools/+/128362/2/imports/fix.go, which we should probably do. But that was about better results, not speed. Thanks. Russ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.