File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,8 @@ $(THRIFT_GEN): $(THRIFT_FILES) $(BIN)/thriftrw $(BIN)/thriftrw-plugin-yarpc
216216 $Q touch $@
217217
218218# mockery is quite noisy so it's worth being kinda precise with the files.
219- # this needs to be both the files defining the generate command, AND the files that define the interfaces.
219+ # as long as the //go:generate line is in the file that defines the thing to mock, this will auto-discover it.
220+ # if we build any fancier generators, like the server's wrappers, this might need adjusting / switch to completely manual.
220221$(BUILD ) /generate : $(shell grep --files-with-matches -E '^//go:generate' $(ALL_SRC ) ) $(BIN ) /mockery
221222 $Q $(BIN_PATH ) go generate ./...
222223 $Q touch $@
You can’t perform that action at this time.
0 commit comments