mirror of https://github.com/golang/go.git
When adding a require, we should add an `// indirect` comment if that's what go mod tidy would do. It's possible I should split Add out from Update and Remove, but this was quick and easy and I'm not too worried about it for now. Also minimize the test that covered this case, which was way more complicated than it needed to be AFAICT. Fixes golang/go#38914. Change-Id: I89c44f8573873227c4c9e637d1d31d8c1a6530aa Reviewed-on: https://go-review.googlesource.com/c/tools/+/267578 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| analysis.go | ||
| cache.go | ||
| check.go | ||
| error_test.go | ||
| errors.go | ||
| imports.go | ||
| keys.go | ||
| load.go | ||
| mod.go | ||
| mod_tidy.go | ||
| os_darwin.go | ||
| os_windows.go | ||
| parse.go | ||
| parse_test.go | ||
| pkg.go | ||
| session.go | ||
| snapshot.go | ||
| view.go | ||
| view_test.go | ||
| workspace.go | ||
| workspace_test.go | ||