]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] 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)
committerAndrew Bonventre <andybons@golang.org>
Thu, 29 Mar 2018 06:08:40 +0000 (06:08 +0000)
commit9f7d0c968f22c066e5ade6c19135f97d1660a8be
tree9a3cb323ce6afadccc9f6d16f1e714fdd10c9e1f
parent4e19a5498d82ad49b4a5b3de2032bcb341211458
[release-branch.go1.10] 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>
Reviewed-on: https://go-review.googlesource.com/102789
Run-TryBot: Andrew Bonventre <andybons@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]