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
On Fri, 24 Aug 2018 at 17:53, Tim Waugh <twa...@redhat.com> wrote:
>
> 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/semver@v1.4.2/version.go
>
> But is there a more direct way?
>
> Thanks,
> Tim.
> */
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to