Skip to content

Commit 7a67cc6

Browse files
fix lint
Signed-off-by: David Porter <[email protected]>
1 parent e7dcdfa commit 7a67cc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ proto-go: $(PROTO_FILES) $(BIN)/$(PROTOC_VERSION_BIN) $(BIN)/protoc-gen-gogofast
9494
@rm -r $(PROTO_GO_OUT)/uber
9595

9696
thriftlint:
97-
$(foreach thrift_file,$(THRIFT_FILES),$(shell thrift -o /tmp --gen go $(thrift_file)))
97+
@for file in $(THRIFT_FILES); do \
98+
if ! thrift --gen go "$$file"; then \
99+
echo "FAILED: $$file"; \
100+
exit 1; \
101+
fi; \
102+
done
98103

99104
all: proto-lint proto-go
100105

0 commit comments

Comments
 (0)