Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
corentinmusard committed Apr 5, 2024
1 parent bf38df1 commit a6f831b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Tilebox Go Library

## Copy protobuf

To copy the protobuf files from the `core` repo to this repo, you can use `copy_protobuf.py` script.
4 changes: 2 additions & 2 deletions copy_protobuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def copy_module(core_repo: Path, clients_repo: Path, service_folder: str, packag
search_path = core_repo / service_folder / "protogen" / "go" / package / "v1"
for file in search_path.glob(f"{module}*"):
if file.is_dir():
for subfile in file.glob("*"):
for subfile in file.glob(f"{module}*"):
target_file = target_path / file.name / subfile.name
target_file.parent.mkdir(parents=True, exist_ok=True)
target_file.write_text(fix_imports(subfile.read_text()))
print(f"A Copied and fixed file: {target_file}")
print(f"Copied and fixed file: {target_file}")
continue

target_file = target_path / file.name
Expand Down

0 comments on commit a6f831b

Please sign in to comment.