forked from TrueCloudLab/frostfs-api-go
make: update to NeoFS API v0.7.1
This commit is contained in:
parent
32ebb44434
commit
46942282e5
1 changed files with 9 additions and 9 deletions
18
Makefile
18
Makefile
|
@ -1,4 +1,4 @@
|
||||||
PROTO_VERSION=v0.7.0
|
PROTO_VERSION=v0.7.1
|
||||||
PROTO_URL=https://github.com/nspcc-dev/neofs-api/archive/$(PROTO_VERSION).tar.gz
|
PROTO_URL=https://github.com/nspcc-dev/neofs-api/archive/$(PROTO_VERSION).tar.gz
|
||||||
|
|
||||||
B=\033[0;1m
|
B=\033[0;1m
|
||||||
|
@ -9,14 +9,14 @@ R=\033[0m
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
deps:
|
deps:
|
||||||
@echo "${B}${G}=> Golang modules ${R}"
|
@echo "${B}${G}⇒ Golang modules ${R}"
|
||||||
@go mod tidy -v
|
@go mod tidy -v
|
||||||
@go mod vendor
|
@go mod vendor
|
||||||
|
|
||||||
@echo "${B}${G}=> Cleanup old files ${R}"
|
@echo "${B}${G}⇒ Cleanup old files ${R}"
|
||||||
@find . -type f -name '*.proto' -not -path './vendor/*' -not -name '*_test.proto' -exec rm {} \;
|
@find . -type f -name '*.proto' -not -path './vendor/*' -not -name '*_test.proto' -exec rm {} \;
|
||||||
|
|
||||||
@echo "${B}${G}=> NeoFS Proto files ${R}"
|
@echo "${B}${G}⇒ NeoFS Proto files ${R}"
|
||||||
@mkdir -p ./vendor/proto
|
@mkdir -p ./vendor/proto
|
||||||
@curl -sL -o ./vendor/proto.tar.gz $(PROTO_URL)
|
@curl -sL -o ./vendor/proto.tar.gz $(PROTO_URL)
|
||||||
@tar -xzf ./vendor/proto.tar.gz --strip-components 1 -C ./vendor/proto
|
@tar -xzf ./vendor/proto.tar.gz --strip-components 1 -C ./vendor/proto
|
||||||
|
@ -24,7 +24,7 @@ deps:
|
||||||
cp $$f/*.proto ./$$(basename $$f); \
|
cp $$f/*.proto ./$$(basename $$f); \
|
||||||
done
|
done
|
||||||
|
|
||||||
@echo "${B}${G}=> Cleanup ${R}"
|
@echo "${B}${G}⇒ Cleanup ${R}"
|
||||||
@rm -rf ./vendor/proto
|
@rm -rf ./vendor/proto
|
||||||
@rm -rf ./vendor/proto.tar.gz
|
@rm -rf ./vendor/proto.tar.gz
|
||||||
|
|
||||||
|
@ -48,14 +48,14 @@ docgen: deps
|
||||||
|
|
||||||
# Regenerate proto files:
|
# Regenerate proto files:
|
||||||
protoc: deps
|
protoc: deps
|
||||||
@echo "${B}${G}=> Cleanup old files ${R}"
|
@echo "${B}${G}⇒ Cleanup old files ${R}"
|
||||||
@find . -type f -name '*.pb.go' -not -path './vendor/*' -exec rm {} \;
|
@find . -type f -name '*.pb.go' -not -path './vendor/*' -exec rm {} \;
|
||||||
|
|
||||||
@echo "${B}${G}=> Install specific version for gogo-proto ${R}"
|
@echo "${B}${G}⇒ Install specific version for gogo-proto ${R}"
|
||||||
@go list -f '{{.Path}}/...@{{.Version}}' -m github.com/gogo/protobuf | xargs go get -v
|
@go list -f '{{.Path}}/...@{{.Version}}' -m github.com/gogo/protobuf | xargs go get -v
|
||||||
@echo "${B}${G}=> Install specific version for protobuf lib ${R}"
|
@echo "${B}${G}⇒ Install specific version for protobuf lib ${R}"
|
||||||
@go list -f '{{.Path}}/...@{{.Version}}' -m github.com/golang/protobuf | xargs go get -v
|
@go list -f '{{.Path}}/...@{{.Version}}' -m github.com/golang/protobuf | xargs go get -v
|
||||||
@echo "${B}${G}=> Protoc generate ${R}"
|
@echo "${B}${G}⇒ Protoc generate ${R}"
|
||||||
@for f in `find . -type f -name '*.proto' -not -path './vendor/*'`; do \
|
@for f in `find . -type f -name '*.proto' -not -path './vendor/*'`; do \
|
||||||
echo "${B}${G}⇒ Processing $$f ${R}"; \
|
echo "${B}${G}⇒ Processing $$f ${R}"; \
|
||||||
protoc \
|
protoc \
|
||||||
|
|
Loading…
Reference in a new issue