Skip to content

Commit 4efcc2d

Browse files
committed
update comment
1 parent f2d9bc0 commit 4efcc2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 $@

0 commit comments

Comments
 (0)