Sorry to revive this very old topic, but I didn't manage to make this work today, is it still supposed to work? ("go generate" using build tags).
On Thursday, 19 February 2015 at 22:13:53 UTC-2 Dan Kortschak wrote: > You are absolutely right. The bug is invalid. > > thanks > > On Thu, 2015-02-19 at 15:23 -0800, Viktor Kojouharov wrote: > > Does it? I'm on 1.4.1 and if the file containing the go:generate > > comment > > has a build tag, and I invoke `go generate` without giving it `-tag > > THE_TAG`, it won't do anything. It will only run the generate commands > > with > > the tag flag. Which is in fact what I was expecting and what I > > wanted, > > though it wasn't documented. > > > -- 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/b6257736-2c92-4bb5-8ab2-4094cc590cc5n%40googlegroups.com.