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.

Reply via email to