mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
That change changes the name of an ad-hoc package go list produces to contain the names of the files instead of just being called "command-line-arguments". It also means go list will report multiple packages for an ad-hoc package that's not saved on disk that contains multiple sources. Update test cases that depend on this behavior. One thing to be aware of: the change in go list (without additional changes in go/packages) will break users depending on ad-hoc packages with multiple files, when the any of the files don't exist on disk. We're not adding a work-around in this cl because overlays aren't guaranteed to be 100% correct and the LSP doesn't need this functionality. If this turns out to be a problem we can fix it. Change-Id: I342cd3cb54bf35992186ee02ddd9ac316ff1db4f Reviewed-on: https://go-review.googlesource.com/c/tools/+/199097 Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>