shurcooL / binstale

binstale tells you whether the binaries in your GOPATH/bin are stale or up to date.
MIT License
146 stars 4 forks source link

Consider using debug/gosym to determine import path from binary. #6

Open dmitshur opened 8 years ago

dmitshur commented 8 years ago

Sources:

Potential test case (currently suboptimal behavior, since the binary is only one of these two Go packages, but binstale currently cannot know which one):

$ binstale go-diff
go-diff
    up to date: github.com/daviddengcn/go-diff
    STALE: sourcegraph.com/sourcegraph/go-diff/cmd/go-diff
dmitshur commented 7 years ago

I've asked whether this approach can be relied on at https://groups.google.com/forum/#!topic/golang-dev/3nqju0Cfbqk. Waiting on reply there.