waigani / GoOracle

GoOracle is a Golang plugin for SublimeText that integrates the Go oracle tool.
MIT License
73 stars 17 forks source link

Set GOOS so oracle can view cross compiled files. #17

Closed kylebrandt closed 8 years ago

kylebrandt commented 9 years ago

Without this oracle can't find files such as foo_linux.go

kylebrandt commented 9 years ago

For example:

[kbrandt@grove: ~/src/bosun.org/cmd/scollector/collectors] oracle -pos=keepalived_linux.go:\#532 -format=json describe bosun.org/cmd/bosun
oracle: couldn't find file containing position.
[kbrandt@grove: ~/src/bosun.org/cmd/scollector/collectors] GOOS=linux oracle -pos=keepalived_linux.go:\#532 -format=json describe bosun.org/cmd/bosun
{
    "mode": "describe",
    "describe": {
        "desc": "type struct{VInstanceIndex int64; VInstanceName string; VInstanceVirtualRouterId ....