go/internal/imports
pjw d7a4bb4f6a internal/imports: avoid rare panic
(*token.File)MergeLine() can panic. Add code to avoid the panic
and request information from users.

Fixes golang/go#50329

Change-Id: I9c10a5c6cbee4ff8a34321e77e32971f7e588cb5
Reviewed-on: https://go-review.googlesource.com/c/tools/+/376274
Run-TryBot: Peter Weinberger <pjw@google.com>
Trust: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-01-11 14:03:54 +00:00
..
testdata/mod imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
fix.go all: use explicit -mod, -modfile fields for gocommand.Invocation 2020-10-19 17:57:15 +00:00
fix_test.go go/packages/packagestest: make Export skip tests involving unsupported links 2021-06-02 19:23:16 +00:00
imports.go internal/imports: require valid options, move LocalPrefix up 2020-07-07 20:02:13 +00:00
imports_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
mkindex.go all: go fmt ./... 2021-02-20 03:28:52 +00:00
mkstdlib.go internal/imports: update stdlib index for 1.17 2021-08-24 14:51:57 +00:00
mod.go all: recognize new error from go command when no go.mod is found 2021-03-04 22:10:16 +00:00
mod_cache.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
mod_cache_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
mod_test.go all: update tests to use 'go mod download all' to populate go.sum 2021-05-11 20:42:14 +00:00
sortimports.go internal/imports: avoid rare panic 2022-01-11 14:03:54 +00:00
zstdlib.go internal/imports: update stdlib index for 1.17 2021-08-24 14:51:57 +00:00