Thanks Wagner.

I concur that there might be a bug, or at least the documentation could 
CLARIFY whether analyzer's option is not supported or not,
referring to the usage of 'go vet' I assume the answer would be 'no'.

I tried to modify fieldalignment to turn its '-fix' option on by default, 
change worked as expected if running fieldalignment as a standalone
utility, but no rewriting is applied when running it as a tool of 'go vet', 
could any expert here shed a light? Thanks.  

On Tuesday, April 13, 2021 at 9:50:16 AM UTC+8 wagner riffel wrote:

> On Mon Apr 12, 2021 at 10:23 AM -03, Xiangdong Ji wrote:
> > Hi,
> >
> > I'm trying to run "go vet -vettool=$(which fieldalignment) ./..." for a
> > large project, and wish to turn its '-fix' option on, wondering how to
> > pass
> > that option?
>
> Hi Xiangdong, I found that surprising that even docs didn't mention
> this anywhere, I also got confused by how go vet -vettool works but I
> think I understood after reading the source code, after a -vettool is
> specified, all flags that are not build flags should be sent to the
> vettool, apparently those old tools like fieldalignemnt are broken
> with the new "vet command line protocol" mentioned in the source code,
> even some flags for those tools is broken, it's clear to me that
> there's a bug going on here. Please also consider that possible that I
> just think I understood the problem. :)
>
> BR.
>
> --wagner
>
>

-- 
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/ddc5863d-cf77-4015-91f1-b1cae4863ed8n%40googlegroups.com.

Reply via email to