mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
move make proto & make proto-lint commands to root folder (#265)
* fix make proto * cleaning
This commit is contained in:
12
Makefile
12
Makefile
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: build-server build-client build-all-server build-all-client
|
.PHONY: build-server build-client build-all-server build-all-client proto proto-lint build build-all
|
||||||
|
|
||||||
build-server:
|
build-server:
|
||||||
@echo "Building arkd binary..."
|
@echo "Building arkd binary..."
|
||||||
@@ -22,3 +22,13 @@ build-wasm:
|
|||||||
|
|
||||||
build: build-server build-client build-wasm
|
build: build-server build-client build-wasm
|
||||||
build-all: build-all-server build-all-client build-wasm
|
build-all: build-all-server build-all-client build-wasm
|
||||||
|
|
||||||
|
proto: proto-lint
|
||||||
|
@echo "Compiling stubs..."
|
||||||
|
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf generate buf.build/vulpemventures/ocean
|
||||||
|
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf generate
|
||||||
|
|
||||||
|
proto-lint:
|
||||||
|
@echo "Linting protos..."
|
||||||
|
@docker build -q -t buf -f buf.Dockerfile . &> /dev/null
|
||||||
|
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf lint
|
||||||
@@ -131,7 +131,6 @@ func local_request_AdminService_GetRounds_0(ctx context.Context, marshaler runti
|
|||||||
// UnaryRPC :call AdminServiceServer directly.
|
// UnaryRPC :call AdminServiceServer directly.
|
||||||
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
||||||
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdminServiceHandlerFromEndpoint instead.
|
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdminServiceHandlerFromEndpoint instead.
|
||||||
// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
|
|
||||||
func RegisterAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminServiceServer) error {
|
func RegisterAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminServiceServer) error {
|
||||||
|
|
||||||
mux.Handle("GET", pattern_AdminService_GetScheduledSweep_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("GET", pattern_AdminService_GetScheduledSweep_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
@@ -247,7 +246,7 @@ func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, con
|
|||||||
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminServiceClient".
|
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminServiceClient".
|
||||||
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminServiceClient"
|
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminServiceClient"
|
||||||
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
||||||
// "AdminServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
|
// "AdminServiceClient" to call the correct interceptors.
|
||||||
func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminServiceClient) error {
|
func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminServiceClient) error {
|
||||||
|
|
||||||
mux.Handle("GET", pattern_AdminService_GetScheduledSweep_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("GET", pattern_AdminService_GetScheduledSweep_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
|
|||||||
@@ -434,7 +434,6 @@ func local_request_ArkService_CompletePayment_0(ctx context.Context, marshaler r
|
|||||||
// UnaryRPC :call ArkServiceServer directly.
|
// UnaryRPC :call ArkServiceServer directly.
|
||||||
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
||||||
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArkServiceHandlerFromEndpoint instead.
|
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArkServiceHandlerFromEndpoint instead.
|
||||||
// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
|
|
||||||
func RegisterArkServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArkServiceServer) error {
|
func RegisterArkServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArkServiceServer) error {
|
||||||
|
|
||||||
mux.Handle("POST", pattern_ArkService_RegisterPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("POST", pattern_ArkService_RegisterPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
@@ -757,7 +756,7 @@ func RegisterArkServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn
|
|||||||
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArkServiceClient".
|
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArkServiceClient".
|
||||||
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArkServiceClient"
|
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArkServiceClient"
|
||||||
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
||||||
// "ArkServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
|
// "ArkServiceClient" to call the correct interceptors.
|
||||||
func RegisterArkServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArkServiceClient) error {
|
func RegisterArkServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArkServiceClient) error {
|
||||||
|
|
||||||
mux.Handle("POST", pattern_ArkService_RegisterPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("POST", pattern_ArkService_RegisterPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
|
|||||||
@@ -211,7 +211,6 @@ func local_request_WalletService_GetBalance_0(ctx context.Context, marshaler run
|
|||||||
// UnaryRPC :call WalletInitializerServiceServer directly.
|
// UnaryRPC :call WalletInitializerServiceServer directly.
|
||||||
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
||||||
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWalletInitializerServiceHandlerFromEndpoint instead.
|
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWalletInitializerServiceHandlerFromEndpoint instead.
|
||||||
// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
|
|
||||||
func RegisterWalletInitializerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletInitializerServiceServer) error {
|
func RegisterWalletInitializerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletInitializerServiceServer) error {
|
||||||
|
|
||||||
mux.Handle("GET", pattern_WalletInitializerService_GenSeed_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("GET", pattern_WalletInitializerService_GenSeed_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
@@ -346,7 +345,6 @@ func RegisterWalletInitializerServiceHandlerServer(ctx context.Context, mux *run
|
|||||||
// UnaryRPC :call WalletServiceServer directly.
|
// UnaryRPC :call WalletServiceServer directly.
|
||||||
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
||||||
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWalletServiceHandlerFromEndpoint instead.
|
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWalletServiceHandlerFromEndpoint instead.
|
||||||
// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
|
|
||||||
func RegisterWalletServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletServiceServer) error {
|
func RegisterWalletServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletServiceServer) error {
|
||||||
|
|
||||||
mux.Handle("POST", pattern_WalletService_Lock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("POST", pattern_WalletService_Lock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
@@ -462,7 +460,7 @@ func RegisterWalletInitializerServiceHandler(ctx context.Context, mux *runtime.S
|
|||||||
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletInitializerServiceClient".
|
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletInitializerServiceClient".
|
||||||
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletInitializerServiceClient"
|
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletInitializerServiceClient"
|
||||||
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
||||||
// "WalletInitializerServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
|
// "WalletInitializerServiceClient" to call the correct interceptors.
|
||||||
func RegisterWalletInitializerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletInitializerServiceClient) error {
|
func RegisterWalletInitializerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletInitializerServiceClient) error {
|
||||||
|
|
||||||
mux.Handle("GET", pattern_WalletInitializerService_GenSeed_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("GET", pattern_WalletInitializerService_GenSeed_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
@@ -637,7 +635,7 @@ func RegisterWalletServiceHandler(ctx context.Context, mux *runtime.ServeMux, co
|
|||||||
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletServiceClient".
|
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletServiceClient".
|
||||||
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletServiceClient"
|
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletServiceClient"
|
||||||
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
||||||
// "WalletServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
|
// "WalletServiceClient" to call the correct interceptors.
|
||||||
func RegisterWalletServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletServiceClient) error {
|
func RegisterWalletServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletServiceClient) error {
|
||||||
|
|
||||||
mux.Handle("POST", pattern_WalletService_Lock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
mux.Handle("POST", pattern_WalletService_Lock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: build clean cov help intergrationtest lint run run-neutrino run-neutrino-signet test vet proto proto-lint
|
.PHONY: build clean cov help intergrationtest lint run run-neutrino run-neutrino-signet test vet
|
||||||
|
|
||||||
## build: build for all platforms
|
## build: build for all platforms
|
||||||
build:
|
build:
|
||||||
@@ -91,19 +91,6 @@ vet:
|
|||||||
@echo "Running code analysis..."
|
@echo "Running code analysis..."
|
||||||
@go vet ./...
|
@go vet ./...
|
||||||
|
|
||||||
## proto: compile proto stubs
|
|
||||||
proto: proto-lint
|
|
||||||
@echo "Compiling stubs..."
|
|
||||||
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf generate buf.build/vulpemventures/ocean
|
|
||||||
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf generate
|
|
||||||
|
|
||||||
## proto-lint: lint protos
|
|
||||||
proto-lint:
|
|
||||||
@echo "Linting protos..."
|
|
||||||
@docker build -q -t buf -f buf.Dockerfile . &> /dev/null
|
|
||||||
@docker run --rm --volume "$(shell pwd):/workspace" --workdir /workspace buf lint
|
|
||||||
|
|
||||||
|
|
||||||
## mig_file: creates pg migration file(eg. make FILE=init mig_file)
|
## mig_file: creates pg migration file(eg. make FILE=init mig_file)
|
||||||
mig_file:
|
mig_file:
|
||||||
@migrate create -ext sql -dir ./internal/infrastructure/db/sqlite/migration/ $(FILE)
|
@migrate create -ext sql -dir ./internal/infrastructure/db/sqlite/migration/ $(FILE)
|
||||||
|
|||||||
Reference in New Issue
Block a user