mirror of
https://github.com/hanzoai/vector-go.git
synced 2026-10-30 18:18:35 +00:00
Update module path and all imports from github.com/qdrant/go-client to github.com/hanzoai/vector-go for Hanzo Vector Go SDK.
50 lines
1.7 KiB
Bash
Executable File
50 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
PROJECT_ROOT="$(pwd)/$(dirname "$0")/../"
|
|
|
|
QDRANT_PROTO_DIR='proto'
|
|
|
|
go install google.golang.org/protobuf/cmd/[email protected]
|
|
go install google.golang.org/grpc/cmd/[email protected]
|
|
|
|
export PATH="$PATH:$(go env GOPATH)/bin"
|
|
|
|
PROTO_DIR=./internal/proto
|
|
OUT_DIR=./qdrant
|
|
PACKAGE_NAME="github.com/hanzoai/vector-go;qdrant"
|
|
|
|
protoc \
|
|
--experimental_allow_proto3_optional \
|
|
--proto_path=$PROTO_DIR/ \
|
|
--go_out=$OUT_DIR \
|
|
--go-grpc_out=$OUT_DIR \
|
|
--go_opt=paths=source_relative \
|
|
--go-grpc_opt=paths=source_relative \
|
|
\
|
|
--go_opt=Mcollections_service.proto=$PACKAGE_NAME \
|
|
--go_opt=Mcollections.proto=$PACKAGE_NAME \
|
|
--go_opt=Mqdrant_common.proto=$PACKAGE_NAME \
|
|
--go_opt=Mjson_with_int.proto=$PACKAGE_NAME \
|
|
--go_opt=Mpoints_service.proto=$PACKAGE_NAME \
|
|
--go_opt=Mpoints.proto=$PACKAGE_NAME \
|
|
--go_opt=Msnapshots_service.proto=$PACKAGE_NAME \
|
|
--go_opt=Mqdrant.proto=$PACKAGE_NAME \
|
|
\
|
|
--go-grpc_opt=Mcollections_service.proto=$PACKAGE_NAME \
|
|
--go-grpc_opt=Mcollections.proto=$PACKAGE_NAME \
|
|
--go-grpc_opt=Mqdrant_common.proto=$PACKAGE_NAME \
|
|
--go-grpc_opt=Mjson_with_int.proto=$PACKAGE_NAME \
|
|
--go-grpc_opt=Mpoints_service.proto=$PACKAGE_NAME \
|
|
--go-grpc_opt=Mpoints.proto=$PACKAGE_NAME \
|
|
--go-grpc_opt=Msnapshots_service.proto=$PACKAGE_NAME \
|
|
--go-grpc_opt=Mqdrant.proto=$PACKAGE_NAME \
|
|
\
|
|
$PROTO_DIR/collections_service.proto \
|
|
$PROTO_DIR/collections.proto \
|
|
$PROTO_DIR/qdrant_common.proto \
|
|
$PROTO_DIR/json_with_int.proto \
|
|
$PROTO_DIR/points_service.proto \
|
|
$PROTO_DIR/points.proto \
|
|
$PROTO_DIR/snapshots_service.proto \
|
|
$PROTO_DIR/qdrant.proto \
|