Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Add script to fix import paths in gen files (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudymas authored and yurishkuro committed Nov 24, 2017
1 parent 2f780af commit c4908a4
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ thrift: idl-submodule thrift-image
${THRIFT} -o /data --gen py:${THRIFT_PY_ARGS} -out /data/$(THRIFT_GEN_DIR) /data/idl/thrift/zipkinCore.thrift
${THRIFT} -o /data --gen py:${THRIFT_PY_ARGS} -out /data/$(THRIFT_GEN_DIR) /data/idl/thrift/agent.thrift
${THRIFT} -o /data --gen py:${THRIFT_PY_ARGS} -out /data/$(THRIFT_GEN_DIR) /data/idl/thrift/sampling.thrift
find jaeger_client/thrift_gen -iname '*.py' -exec sed -i.bak 's/from ttype/from .ttype/g' {} \;
rm jaeger_client/thrift_gen/{**/*.bak,*.bak}
rm -rf ${THRIFT_GEN_DIR}/*/*-remote

update-license:
Expand Down
2 changes: 1 addition & 1 deletion crossdock/thrift_gen/tracetest/TracedService.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crossdock/thrift_gen/tracetest/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions jaeger_client/thrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def port_to_int(port):


def id_to_int(big_id):
if big_id is None:
return None
# zipkincore.thrift defines ID fields as i64, which is signed,
# therefore we convert large IDs (> 2^63) to negative longs
if big_id > _max_signed_id:
Expand Down
2 changes: 1 addition & 1 deletion jaeger_client/thrift_gen/agent/Agent.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jaeger_client/thrift_gen/agent/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jaeger_client/thrift_gen/sampling/SamplingManager.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jaeger_client/thrift_gen/sampling/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jaeger_client/thrift_gen/zipkincore/ZipkinCollector.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jaeger_client/thrift_gen/zipkincore/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4908a4

Please sign in to comment.