1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:44:49 -07:00
go/internal/imports
Heschi Kreinick 8ca64c5666 internal/imports: fix crash when adding stdlib imports
We failed to initialize the ProcessEnv when adding stdlib imports.
Somehow this went unnnoticed for a month or something. Initialize on
demand there too, and add a stronger check so there's a better error
message.

Fixes golang/go#40670.

Change-Id: I391c115f417390be4a0e18f92fbfbcbfbdcc052c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/247797
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-08-13 17:47:04 +00:00
..
testdata/mod imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
fix_test.go internal/imports: fix crash when adding stdlib imports 2020-08-13 17:47:04 +00:00
fix.go internal/imports: fix crash when adding stdlib imports 2020-08-13 17:47:04 +00:00
imports_test.go internal/imports: require valid options, move LocalPrefix up 2020-07-07 20:02:13 +00:00
imports.go internal/imports: require valid options, move LocalPrefix up 2020-07-07 20:02:13 +00:00
mkindex.go imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
mkstdlib.go internal/imports: update stdlib index for 1.15 2020-08-04 21:03:08 +00:00
mod_cache_test.go internal/imports: clean up dead code 2019-12-30 21:21:44 +00:00
mod_cache.go internal/imports: stop leaking listeners 2020-02-04 05:47:48 +00:00
mod_test.go internal/imports: fix crash when adding stdlib imports 2020-08-13 17:47:04 +00:00
mod.go internal/imports: fix crash when adding stdlib imports 2020-08-13 17:47:04 +00:00
sortimports.go internal/imports: require valid options, move LocalPrefix up 2020-07-07 20:02:13 +00:00
zstdlib.go internal/imports: update stdlib index for 1.15 2020-08-04 21:03:08 +00:00