On Wed, Mar 26, 2025 at 2:26 PM Zdenek Dohnal via golang <golang@lists.fedoraproject.org> wrote: > > Hi Florian! > > Thank you for the idea! > > I knew about 'go version', which would give me go version as whole, but > not about the possibility to use this to see versions of used modules - > great to know! > > On 3/21/25 10:53, Florian Weimer wrote: > > A different way to do this would involve a dependency generator that > > looks at “go version -m” output like this: > > > > dep golang.org/x/crypto v0.32.0 > > dep golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329 > > dep golang.org/x/mod v0.22.0 > > dep golang.org/x/net v0.34.0 > > dep golang.org/x/oauth2 v0.25.0 > > dep golang.org/x/sync v0.10.0 > > dep golang.org/x/sys v0.29.0 > > dep golang.org/x/term v0.28.0 > > dep golang.org/x/text v0.21.0 > > dep golang.org/x/time v0.9.0 > > How did you get such output from 'go version -m'? Or is it a theoretical > output? Because if I call this on my ipp-usb binary, I get this output:
I think this information is only embedded when building in "module mode", which package builds in Fedora explicitly turn off (GO111MODULE=off). Fabio -- _______________________________________________ golang mailing list -- golang@lists.fedoraproject.org To unsubscribe send an email to golang-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue