GoSublime icon indicating copy to clipboard operation
GoSublime copied to clipboard

goimports not importing internal packages when working outside of GOPATH

Open cgilling opened this issue 5 years ago • 0 comments

I was recently debugging a problem with goimports not working properly and found it wasn't working quite right when working with modules outside of the gopath, specifically importing internal packages within your module. I created a quick fix for this for anyone who has this problem as well. (I haven't done a PR because I think the problem is actually in goimports code, but I got it working and haven't had the time to dig into goimports code)

cgilling avatar May 09 '19 19:05 cgilling