mirror of
https://github.com/golang/go
synced 2024-11-19 03:34:41 -07:00
4147ede4f8
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> |
||
---|---|---|
.. | ||
testdata/mod | ||
fix_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
mod_112_test.go | ||
mod_test.go | ||
mod.go | ||
proxy_112_test.go | ||
proxy_113_test.go | ||
sortimports.go | ||
zstdlib.go |