Skip to content

Commit 4499c8d

Browse files
authored
chore: migrate submodule from protos to s2-specs (#106)
1 parent 10433ea commit 4499c8d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "protos"]
2-
path = protos
3-
url = https://github.com/s2-streamstore/s2-protos.git
1+
[submodule "s2-specs"]
2+
path = s2-specs
3+
url = https://github.com/s2-streamstore/s2-specs.git

update_protos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
cd src/streamstore/_lib
5-
uv run python -m grpc_tools.protoc -I../../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../../protos/s2/v1alpha/s2.proto
5+
uv run python -m grpc_tools.protoc -I../../../s2-specs --python_out=. --pyi_out=. --grpc_python_out=. ../../../s2-specs/s2/v1alpha/s2.proto
66
# workaround for https://github.com/protocolbuffers/protobuf/issues/7061
77
find . -name '*.py' | xargs -I{} sed -i '' 's/from s2\.\(v[0-9][a-z0-9]*\) import s2_pb2 as s2_dot_\1_dot_s2__pb2/from streamstore._lib.s2.\1 import s2_pb2 as s2_dot_\1_dot_s2__pb2/' {}
88
uv run poe checker

0 commit comments

Comments
 (0)