Pass a package instead of files for certain oracle commands
Pass a package instead of files for certain oracle commands

https://docs.google.com/document/d/1SLk36YRjjMgKqe490mSRzOPYEDe0Y_WQNRv-EiFYUyw/

    Pointer analysis scope

    Queries that use pointer analysis need a complete program. callers,
    callees, and callstack use pointer analysis to construct a precise
    call graph; peers uses it to compute the relationship between
    channel sends and receives; and pointsto and whicherrs use it to
    discover what variables a pointer may point to. F̲o̲r̲ ̲t̲h̲e̲s̲e̲ ̲q̲u̲e̲r̲i̲e̲s̲,̲
    y̲o̲u̲ ̲m̲u̲s̲t̲ ̲t̲e̲l̲l̲ ̲t̲h̲e̲ ̲o̲r̲a̲c̲l̲e̲ ̲t̲h̲e̲ ̲m̲a̲i̲n̲ ̲p̲a̲c̲k̲a̲g̲e̲ ̲o̲f̲ ̲y̲o̲u̲r̲ ̲a̲p̲p̲l̲i̲c̲a̲t̲i̲o̲n̲, and
    it will load source code for the complete transitive closure of
    those packages; it cannot analyse isolated libraries. We call this
    the scope of the analysis.

Passing the files instead of a package results in the following error
for GoCallers, GoCallees, GoCallstack, and GoChannelPeers.

    oracle: analysis scope has no main and no tests

jacobxk/vim-go,wingyplus/vim-go,mechmind/vim-go,andviro/vim-go,glittershark/vim-go,lioonline/vim-go,vim-IDE/vim-go,vim-IDE/vim-go,syohex/vim-go,prodis/vim-go,shaunstanislaus/vim-go,wheelcomplex/vim-go,rxwen/vim-go,vashstorm/vim-go,emmagras/vim-go,apriendeau/vim-go,ebfe/vim-go,mizoR/vim-go,hiteshjoshi/vim-go,ev46/vim-go,t-yuki/vim-go,mrnugget/vim-go,andviro/vim-go,youleiy/vim-go,vim-IDE/vim-go,DrGo/vim-go