Forget it, it is working, I was using a build tag of "generate" which is 
special, and the only one for which it doesn't work.

On Wednesday, 15 March 2023 at 15:34:38 UTC-3 Rangel Reale wrote:

> 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/794a9786-d052-4627-8588-24d70769197an%40googlegroups.com.

Reply via email to