Robert van Gent

Results 123 comments of Robert van Gent
trafficstars

WDYT about always omitting the `//go:generate wire` line if a header is provided? It seems like a signal that the user is not actually using `go generate` to generate the...

If you want conditional behavior at compile time, consider using Go's build tags: https://golang.org/pkg/go/build/. I.e., you could use `wire` to produce both configurations, and only include one of them in...

Another idea is to have `wire.Subtract` be a wire directive, used to wrap a `ProviderSet` in a `wire.NewSet` or a `wire.Build`. Use cases might be: 1. I want to make...

@eliben can you add the new owners for this repo?

Thanks for the report. More than likely this is a misconfiguration, but `wire` should give a better error message. * Does this still happen if you upgrade to wire `v0.3.0`...

@josgilmo -- that doesn't seem to have anything to do with this issue, can you please file a new one? https://github.com/google/wire/issues/new

@shantuo can you take a look? Maybe add a new testcase with this?