-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/tools/gopls: inconsistent vendoring issue #37734
Comments
try 'go mod vendor' but not use |
github.com/go-sql-driver/mysql v1.5.0explicitgithub.com/go-sql-driver/mysql github.com/go-xorm/xorm v0.7.9explicitgithub.com/go-xorm/xorm github.com/tencentcloud/tencentcloud-sdk-go v3.0.126+incompatibleexplicitgithub.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common xorm.io/builder v0.3.6xorm.io/builder xorm.io/core v0.7.2-0.20190928055935-90aeac8d08ebxorm.io/core |
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
Thanks for reporting this issue! A related issue might be #34657. Can you share the output of @jayconrod or @bcmills: Do you have any insight on this error / how to avoid it? Thanks! |
cc @matloob @kindywu Could you try running
This error is reported when automatic vendoring is enabled and |
sorry,i have rollback to go1.12。the env is gone |
In my case, without rollback to prev. Go version, the followings worked for me:
|
@kindywu i have problem when i install package mysql. go: inconsistent vendoring in C:\Go\src:
run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory I get an error like that and I can't run all of my .go files. Do you know how to solve this? |
@aditya-09: You can follow along with #39100. |
module demo7
go 1.14
require (
github.com/go-sql-driver/mysql v1.5.0
github.com/go-xorm/xorm v0.7.9
github.com/tencentcloud/tencentcloud-sdk-go v3.0.126+incompatible
)
Your workspace is misconfigured: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=C:\Users\kindy\AppData\Local\Temp\go.demo7.645362371.mod -- demo7/tests]: exit status 1: go: inconsistent vendoring in C:\WS\golang\demo7:
github.com/kr/pretty@v0.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
. Please see https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md for more information or file an issue (https://github.com/golang/go/issues/new) if you believe this is a mistake.
The text was updated successfully, but these errors were encountered: