]> Cypherpunks repositories - gostls13.git/commit
go/internal/srcimporter: simplify and fix package file lookup
authorHiroshi Ioka <hirochachacha@gmail.com>
Mon, 11 Dec 2017 23:59:01 +0000 (08:59 +0900)
committerRobert Griesemer <gri@golang.org>
Tue, 20 Mar 2018 22:46:00 +0000 (22:46 +0000)
commit5f0a9ba1342674b3209c13035b5aa39a96dbd80c
tree30f6f7ebda6d95e58b4dbd27123c8b97a5e104f9
parent2638001e12fe91736c6872cdd818fecc36d98c5e
go/internal/srcimporter: simplify and fix package file lookup

The old code was a blend of (copied) code that existed before go/build,
and incorrect adjustments made when go/build was introduced. This change
leaves package path determination entirely to go/build and in the process
fixes issues with relative import paths.

Fixes #23092
Fixes #24392

Change-Id: I9e900538b365398751bace56964495c5440ac4ae
Reviewed-on: https://go-review.googlesource.com/83415
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/internal/srcimporter/srcimporter.go
src/go/internal/srcimporter/srcimporter_test.go
src/go/internal/srcimporter/testdata/issue23092/issue23092.go [new file with mode: 0644]
src/go/internal/srcimporter/testdata/issue24392/issue24392.go [new file with mode: 0644]