You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
It adds vendor/gopkg.in/Shopify/sarama.v1 which is incorrect import path. vendor/ is treated differently by Go toolchain. goreturns does the right thing:
That's a continuation of #613. Get code from https://github.com/AlekSi/vscode-bug and then edit main.go as shown:
Two things are wrong after hitting Enter:
sarama.v1to code. As I explained in Format removes imports of vendored packages in use #613, the package name issarama, notsarama.v1. Package name != last part of import path.vendor/gopkg.in/Shopify/sarama.v1which is incorrect import path.vendor/is treated differently by Go toolchain. goreturns does the right thing: