1
0
mirror of https://github.com/golang/go synced 2024-10-01 16:28:33 -06:00
go/refactor
Alan Donovan e211dfb000 refactor/rename: fix crash with "." as -from package
Cause: the absolute cwd, not ".", must be passed to build.Import.

Also: simplify the lookup logic in findFromObjects, and handle nil
gracefully.

(No unit test---not worth faking os.Getwd.)

Fixes issue #13866

Change-Id: I7e8eede55bc83d98e2ef5e42609c287e74c04501
Reviewed-on: https://go-review.googlesource.com/18453
Reviewed-by: Michael Matloob <matloob@golang.org>
2016-01-08 19:32:44 +00:00
..
eg tools: switch to standard go/types at tip 2016-01-06 22:15:26 +00:00
importgraph tools: fallout from flipped sense of build.IgnoreVendor flag 2016-01-08 18:54:48 +00:00
rename refactor/rename: fix crash with "." as -from package 2016-01-08 19:32:44 +00:00
satisfy tools: switch to standard go/types at tip 2016-01-06 22:15:26 +00:00
README go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00

golang.org/x/tools/refactor: libraries for refactoring tools.