Skip to content

Commit 63b4f7d

Browse files
committed
corrections
Signed-off-by: Yuri Shkuro <[email protected]>
1 parent 4643500 commit 63b4f7d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci-lint-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
run: make proto && { if git status --porcelain | grep '??'; then exit 1; else git diff --name-status --exit-code; fi }
3535

3636
- name: Verify Thrift types are up to date
37-
run: make thrift && { if git status --porcelain | grep '??'; then exit 1; else git diff --name-status --exit-code; fi }
37+
run: make thrift && { if git status --porcelain | grep '??'; then exit 1; else git diff --name-status --exit-code; fi }

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ THRIFT_FILES=agent.thrift jaeger.thrift sampling.thrift zipkincore.thrift crossd
3030
THRIFT_GEN_DIR=thrift-gen
3131

3232
.PHONY: test-code-gen
33-
test-code-gen: thrift swagger-validate protocompile proto proto-zipkin
33+
test-code-gen: thrift-all swagger-validate protocompile proto-all proto-zipkin
3434
git diff --exit-code ./swagger/api_v3/query_service.swagger.json
3535

3636
.PHONY: swagger-validate
@@ -44,11 +44,14 @@ clean:
4444
rm -rf coverage.txt
4545

4646
.PHONY: thrift
47-
thrift: thrift-image clean $(THRIFT_FILES)
47+
thrift:
4848
[ -d $(THRIFT_GEN_DIR) ] || mkdir $(THRIFT_GEN_DIR)
4949
$(THRIFT) -o /data --gen go:$(THRIFT_GO_ARGS) -out /data/$(THRIFT_GEN_DIR) /data/thrift/zipkincore.thrift
5050
rm -rf thrift-gen/*/*-remote thrift-gen/*/*.bak
5151

52+
.PHONY: thrift-all
53+
thrift-all: thrift-image clean $(THRIFT_FILES)
54+
5255
$(THRIFT_FILES):
5356
@echo Compiling $@
5457
$(THRIFT_CMD) /data/thrift/$@

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository does not publish the generated code, but it does run Thrift and
1616

1717
To generate the stubs for your own purposes:
1818
* clone the repository
19-
* run `make proto` or `make thrift`
19+
* run `make proto-all` or `make thrift-all`
2020
* the stubs will be generated under `gen-{lang}` for Thrift and `proto-gen-{lang}` for Protobuf
2121

2222

0 commit comments

Comments
 (0)