Re: [go-nuts] debug.ReadBuildInfo is info.Main.Version always "(devel)"
not yet https://github.com/golang/go/issues/50603 -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAGabyPqVoiVr2etaQu4jCyQg7wg8AjKJH4_jHqqUS9n_rz-m0g%40mail.gmail.com.
[go-nuts] debug.ReadBuildInfo is info.Main.Version always "(devel)"
I was hoping to use debug.ReadBuildInfo to avoid using ugly --ldflags -X directives to insert the current git version into my runtime. This works as expected for dependencies. But the main module comes out as (devel). Is there a way to use ReadBuildInfo to get the actual tag and has of the main module? -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ec68fae5-c7c7-4906-ac08-767a41eaf68en%40googlegroups.com.