loov / goda

Go Dependency Analysis toolkit
MIT License
1.37k stars 45 forks source link

Capture output for better analysis? #79

Closed marcelloh closed 3 months ago

marcelloh commented 3 months ago

I was using this:

print stats while building a go program

go build -a --toolexec "goda exec" .

But when I do this :

go build -a --toolexec "goda exec" . > output.txt

There's no output. in the file.

Is there a way to capture the output into a file, so I can analyse it better?

egonelbre commented 3 months ago

go build outputs to stderr, so you can use:

go build -toolexec "goda exec" . 2> output.txt