-
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
cmd/go: return best-effort results despite inconsistent vendoring #39164
Comments
Thanks!
Yep, |
Yes, I think this is feasible. The fix will be to move the I think it will suffice to apply the error to every package loaded from the |
I have a similar problem, but I'm not sure if my use-case fits in this issue or needs to be addressed in a separate issue. When I list the dependencies of a Go modules based project, e.g. Delve, with
I receive the following error:
If I use the suggested
When compiling the application with a command like the one below, the command finishes successfully:
If I set the So, the problem seems to be As such, I propose that This problem also hampers users of editors such as GoLand. It is impossible for the IDE to list the vendored dependencies and have access to their version, without parsing the |
I understand there's not enough time to include this issue in the Go 1.16 release, so I'll reset the milestone to Backlog. Please update it as needed. |
Is this issue resolved in go 1.16.2 ?? |
@mtalhasaleem502 No, this issue is still open. You can resolve this problem in your module by running |
I have done this but its still giving the same issue in go.mod file. |
@mtalhasaleem502, please open a separate issue with steps to reproduce the problem. |
Is this issue likely to be done for 1.17? Thanks. |
I don't think this will be done for 1.17. Moving to Backlog, but I might reassess it alongside the changes for #36876. |
Hey Jay, I read a few threads you guys had and I'm facing a similar issue here: basically running I'm happy to elaborate on what I'm trying to do here if this info could be helpful for you guys and get some insights from you:
I read one thread where you suggested running Don't know if this is related? Thank you so much! :) |
@AbbyDeng no, that test script edits |
any updates ? I'm using go1.17.5,re-run go mod tidy go mod vendor doesn't work.Is there a workaround? |
|
This seems to be still happening. |
I am getting the same issue here (and I am pretty new with GO) |
Removing gopls from setting.json did the trick for me. |
Following up on #39100, is it possible for the
go
command to return partial results even with an inconsistent vendor folder? This is done in several (arguably smaller) cases, like #35973 and #38846.If
go list
could return partial results along with the error, that would make the experience ingopls
much better for users. Right now, our best option will be to show the user a pop-up with the error message and a button that, when clicked, runsgo mod vendor
. This work-around is fine for now, but I wonder if there is a better longterm solution./cc @bcmills @jayconrod @heschik
The text was updated successfully, but these errors were encountered: