Find package versions in a given binary

58 views
Skip to first unread message

Tim Waugh

unread,
Aug 24, 2018, 12:53:45 PM8/24/18
to golan...@googlegroups.com
Hi,

Does anyone know if there is a tool for working out which package
versions were built into a given executable?

I see that with Go 1.11 with modules enabled, the filenames embedded
in the object have version numbers in them, e.g.:

TEXT github.com/Masterminds/semver.(*Version).Equal(SB)
/var/tmp/go1.11rc2/go/pkg/mod/github.com/!masterminds/sem...@v1.4.2/version.go

But is there a more direct way?

Thanks,
Tim.
*/

Paul Jolly

unread,
Aug 24, 2018, 1:30:53 PM8/24/18
to twa...@redhat.com, golan...@googlegroups.com
Hi Tim,

There happens to have been a discussion about this recently on Twitter
(see https://twitter.com/_myitcv/status/1032836284987977729)

Take a look at https://github.com/rsc/goversion

The -m flag should give you details of the modules used to build your program.

Thanks,


Paul
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Tim Waugh

unread,
Aug 26, 2018, 9:17:53 AM8/26/18
to Paul Jolly, golan...@googlegroups.com
On Fri, 24 Aug 2018, 18:30 Paul Jolly, <pa...@myitcv.io> wrote:
Take a look at https://github.com/rsc/goversion

The -m flag should give you details of the modules used to build your program.

Thanks, that's exactly what I was looking for.

Tim.
*/

Reply all
Reply to author
Forward
0 new messages