mirror of https://github.com/golang/go.git
This fixes a nil pointer bug that occurs when opt is nil. If nil is provide as opt to the internal/imports package, use the default options settings. Also check separately that Env is non-nil, as this would also cause a crash. Change-Id: I9a43b219b31ba80b7cb8111437f211cb72f1ca18 Reviewed-on: https://go-review.googlesource.com/c/tools/+/189939 Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
|---|---|---|
| .. | ||
| apidiff | ||
| fastwalk | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| module | ||
| semver | ||
| span | ||
| tool | ||
| txtar | ||
| xcontext | ||