From a1cb94d07f1823fed753bfeec55dbb4f81ac20d9 Mon Sep 17 00:00:00 2001 From: cc Date: Fri, 16 Jan 2026 17:33:30 +0200 Subject: [PATCH] chore: migrate submodule from protos to s2-specs - Rename submodule from protos to s2-specs - Update submodule URL to s2-specs repository - Update update_protos script to use new submodule path Co-Authored-By: Claude Opus 4.5 --- .gitmodules | 6 +++--- protos => s2-specs | 0 update_protos | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename protos => s2-specs (100%) diff --git a/.gitmodules b/.gitmodules index 4dc1c9b..63e8a6b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "protos"] - path = protos - url = https://github.com/s2-streamstore/s2-protos.git +[submodule "s2-specs"] + path = s2-specs + url = https://github.com/s2-streamstore/s2-specs.git diff --git a/protos b/s2-specs similarity index 100% rename from protos rename to s2-specs diff --git a/update_protos b/update_protos index 8887ec6..e54278b 100755 --- a/update_protos +++ b/update_protos @@ -2,7 +2,7 @@ set -euo pipefail cd src/streamstore/_lib -uv run python -m grpc_tools.protoc -I../../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../../protos/s2/v1alpha/s2.proto +uv run python -m grpc_tools.protoc -I../../../s2-specs --python_out=. --pyi_out=. --grpc_python_out=. ../../../s2-specs/s2/v1alpha/s2.proto # workaround for https://github.com/protocolbuffers/protobuf/issues/7061 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/' {} uv run poe checker