-
Notifications
You must be signed in to change notification settings - Fork 18k
goimports: remove unused package from the list #41346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In general, when using modules, |
I don't see it in the go.mod nor in go.sum.
2020/09/14 17:20:28.840394 qm candidate 1/4: github.com/rekki/sqlboiler/boil/qm in /Users/markelog/Workspace/gocode/pkg/mod/github.com/rekki/[email protected]/boil/qm
2020/09/14 17:20:28.840426 qm candidate 2/4: github.com/rekki/sqlboiler/queries/qm in /Users/markelog/Workspace/gocode/pkg/mod/github.com/rekki/[email protected]+incompatible/queries/qm
2020/09/14 17:20:28.840428 qm candidate 3/4: github.com/volatiletech/sqlboiler/boil/qm in /Users/markelog/Workspace/gocode/pkg/mod/github.com/volatiletech/[email protected]/boil/qm
2020/09/14 17:20:28.840430 qm candidate 4/4: github.com/volatiletech/sqlboiler/queries/qm in /Users/markelog/Workspace/gocode/pkg/mod/github.com/volatiletech/[email protected]+incompatible/queries/qm
2020/09/14 17:20:28.840460 loading exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/volatiletech/[email protected]+incompatible/queries/qm (seeking package qm)
2020/09/14 17:20:28.840498 loading exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/rekki/[email protected]+incompatible/queries/qm (seeking package qm)
2020/09/14 17:20:28.840540 loading exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/volatiletech/[email protected]/boil/qm (seeking package qm)
2020/09/14 17:20:28.840587 loading exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/rekki/[email protected]/boil/qm (seeking package qm)
2020/09/14 17:20:28.840920 loaded exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/rekki/[email protected]/boil/qm (package qm): And, AndIn, Apply, For, From, GroupBy, Having, InnerJoin, Limit, Load, Offset, Or, OrIn, OrderBy, QueryMod, SQL, Select, Where, WhereIn
2020/09/14 17:20:28.840923 loaded exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/volatiletech/[email protected]/boil/qm (package qm): And, AndIn, Apply, For, From, GroupBy, Having, InnerJoin, Limit, Load, Offset, Or, OrIn, OrderBy, QueryMod, SQL, Select, Where, WhereIn
2020/09/14 17:20:28.841145 loaded exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/rekki/[email protected]+incompatible/queries/qm (package qm): And, AndIn, Apply, Expr, For, From, GroupBy, Having, InnerJoin, Limit, Load, Offset, Or, Or2, OrIn, OrderBy, QueryMod, QueryModFunc, Rels, SQL, Select, Where, WhereIn, With
2020/09/14 17:20:28.841149 loaded exports in dir /Users/markelog/Workspace/gocode/pkg/mod/github.com/volatiletech/[email protected]+incompatible/queries/qm (package qm): And, AndIn, Apply, Distinct, Expr, For, From, FullOuterJoin, GroupBy, Having, InnerJoin, LeftOuterJoin, Limit, Load, Offset, Or, Or2, OrIn, OrderBy, QueryMod, QueryModFunc, Rels, RightOuterJoin, SQL, Select, Where, WhereIn, With
package emails
import (
) |
After executing |
Sorry, this is actually a duplicate of #36077. Clearing your module cache is the only option for now. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In my company we are using
github.com/volatiletech/sqlboiler
package, but because it was lacking some feature (or bug I don't recall), we forked it and fixed it ourselves. Provided the fix to upstream too, it was merged. But now, every time I usegithub.com/volatiletech/sqlboiler/queries/qm
package, goimports addsgithub.com/rekki/sqlboiler/boil/qm
instead. I would like to have an ability for goimports to not used outdated packages with same nameWhat did you expect to see?
github.com/volatiletech/sqlboiler/queries/qm
is addedWhat did you see instead?
add
github.com/rekki/sqlboiler/boil/qm
insteadThe text was updated successfully, but these errors were encountered: