1
0
mirror of https://github.com/golang/go synced 2024-11-18 06:44:49 -07:00
go/internal/gopathwalk
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
..
walk_test.go internal: rationalize debug logging 2020-03-03 16:59:18 +00:00
walk.go internal/imports: fix crash when adding stdlib imports 2020-08-13 17:47:04 +00:00