Re: [go-nuts] debug.ReadBuildInfo is info.Main.Version always "(devel)"

2022-03-16 Thread 'Sean Liao' via golang-nuts
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 discussio

[go-nuts] debug.ReadBuildInfo is info.Main.Version always "(devel)"

2022-03-16 Thread Amnon
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