loov / goda

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

Support build tags #38

Closed howardjohn closed 3 years ago

howardjohn commented 3 years ago

Currently it seems build tags are not respected. I would like files like // +build !bloat to be ignored, since they will not end up in my final binaries anyways. Specifically with graph, but likely others apply as well

howardjohn commented 3 years ago

Seems like this is supported but I haven't figured out exactly how to do it. goda graph -cluster -short 'tags=bloat(./...)' is close I think, but doesn't seem to quite do it

howardjohn commented 3 years ago

aha, 'bloat=1(./...)' seems to do it! The readme mentions this but I think its for a special case of test=1 not tags

egonelbre commented 3 years ago

Ah, yes, I did add the feature, but forgot to update the documentation.