Re-compile NeoFS API proto files using updated script

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-11-17 12:35:56 +03:00 committed by Alex Vanin
parent 180da74e5c
commit 0f09f0dfc6
33 changed files with 10 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
acl/grpc/types.pb.go generated

Binary file not shown.

BIN
audit/grpc/types.pb.go generated

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
netmap/grpc/types.pb.go generated

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
object/grpc/types.pb.go generated

Binary file not shown.

View file

@ -1,7 +1,5 @@
#!/bin/bash
prefix=v2
if [ -z "$1" ]; then
echo "usage: ./prepare.sh path/to/neofs-api"
exit 1
@ -9,23 +7,22 @@ fi
API_GO_PATH=$(pwd)
API_PATH=$1
mkdir "$API_GO_PATH/$prefix" 2>/dev/null
# MOVE FILES FROM API REPO
cd "$API_PATH" || exit 1
ARGS=$(find ./ -name '*.proto' -not -path './vendor/*')
for file in $ARGS; do
dir=$(dirname "$file")
mkdir -p "$API_GO_PATH/$prefix/$dir/grpc"
cp -r "$dir"/* "$API_GO_PATH/$prefix/$dir/grpc"
mkdir -p "$API_GO_PATH/$dir/grpc"
cp -r "$dir"/* "$API_GO_PATH/$dir/grpc"
done
# MODIFY FILES
cd "$API_GO_PATH/$prefix" || exit 1
cd "$API_GO_PATH" || exit 1
ARGS2=$(find ./ -name '*.proto')
for file in $ARGS2; do
echo "$file"
sed -i "s/import\ \"\(.*\)\/\(.*\)\.proto\";/import\ \"$prefix\/\1\/grpc\/\2\.proto\";/" $file
sed -i "s/import\ \"\(.*\)\/\(.*\)\.proto\";/import\ \"\1\/grpc\/\2\.proto\";/" $file
done
cd "$API_GO_PATH" || exit 1

BIN
refs/grpc/types.pb.go generated

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
session/grpc/types.pb.go generated

Binary file not shown.

View file

@ -1,8 +1,8 @@
package status
import (
"github.com/nspcc-dev/neofs-api-go/rpc/grpc"
"github.com/nspcc-dev/neofs-api-go/rpc/message"
"github.com/nspcc-dev/neofs-api-go/v2/rpc/grpc"
"github.com/nspcc-dev/neofs-api-go/v2/rpc/message"
status "github.com/nspcc-dev/neofs-api-go/v2/status/grpc"
)

View file

@ -1,9 +1,9 @@
package status
import (
"github.com/nspcc-dev/neofs-api-go/rpc/message"
protoutil "github.com/nspcc-dev/neofs-api-go/util/proto"
"github.com/nspcc-dev/neofs-api-go/v2/rpc/message"
status "github.com/nspcc-dev/neofs-api-go/v2/status/grpc"
protoutil "github.com/nspcc-dev/neofs-api-go/v2/util/proto"
)
const (

View file

@ -3,8 +3,8 @@ package status_test
import (
"testing"
"github.com/nspcc-dev/neofs-api-go/rpc/message"
messagetest "github.com/nspcc-dev/neofs-api-go/rpc/message/test"
"github.com/nspcc-dev/neofs-api-go/v2/rpc/message"
messagetest "github.com/nspcc-dev/neofs-api-go/v2/rpc/message/test"
statustest "github.com/nspcc-dev/neofs-api-go/v2/status/test"
)

Binary file not shown.

Binary file not shown.