commit | 27f88d9b7a2f740ca09706d3579bfed0afe4c2a9 | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Wed Oct 05 14:15:28 2016 -0400 |
committer | Alan Donovan <adonovan@google.com> | Wed Oct 05 18:29:27 2016 +0000 |
tree | 821c591966334333a6b8597cfacecfcbbddaed2f | |
parent | 73d2e795b859a48cba2d70040c384dd1cea7e113 [diff] |
cmd/guru: if query file is not beneath GOPATH, treat it as a package This allows type-based guru queries to work on arbitrary files at the root or even outside of a GOPATH workspace (as "go run foo.go" does). Fixes golang/go#15797 Change-Id: I2be28f7259448e6398aae84d6ae7e71d8649967a Reviewed-on: https://go-review.googlesource.com/30451 Reviewed-by: Robert Griesemer <gri@golang.org>