whyrusleeping / gx-go

gx subtool for golang
MIT License
80 stars 28 forks source link

WIP: rewrite: remove vanity imports when rewriting #58

Closed lanzafame closed 5 years ago

lanzafame commented 5 years ago

Do Not Merge

This adds the fixCanonicalImports (canonical == vanity) function back into Rewrite. It was removed Feb 2016 in this commit: https://github.com/whyrusleeping/gx-go/commit/49505e293176180a7059864c539db7afc2321bdb#diff-8b14a939d930fe1dbc00ef6a33ad2cc2

I am stuck between this feature and bubbling up a new protobuf version across every package that uses peerstore. This would be preferable.

cc @hsanjuan @Stebalien