x/tools/gopls: add directness to gopls's CommandAddDependency #38914
Comments
The extra dependencies are now suggested, but they are not labeled as |
We have a test case in https://github.com/golang/tools/blob/4fc0492b8eca8657dd80eff56bf885b7258ddd73/gopls/internal/regtest/modfile_test.go#L402 that verifies that dependencies like this are added without an |
Yeah, it looks like the comment on the test doesn't actually match what the test checks for. |
I added the comment recently because I didn't understand what was going on. I will change the behavior to match my expectations. |
Change https://golang.org/cl/267578 mentions this issue: |
Repro case:
Running
go mod tidy
results in:The text was updated successfully, but these errors were encountered: