mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-13 04:58:09 +00:00
api: Remove generated API files from repo + update build.
All these files can be generated using the `make api` command and there is no real need to commit these into the repo. Only the api/go files need to be comitted of how the Go import system works. This also updates the Rust, Go, JS and gRPC-web (JS) code generation and UI build to use the nix-shell environment instead of using Docker.
This commit is contained in:
3
api/python/Makefile
vendored
3
api/python/Makefile
vendored
@ -1,7 +1,7 @@
|
||||
.PHONY: requirements common gw api integration stream
|
||||
|
||||
PROTOC := python -m grpc_tools.protoc
|
||||
PROTOC_ARGS := -I=/googleapis -I=proto --python_out=src --grpc_python_out=src --pyi_out=src
|
||||
PROTOC_ARGS := -I=proto --python_out=src --grpc_python_out=src --pyi_out=src
|
||||
PACKAGE_NAME := import \"chirpstack-api/
|
||||
|
||||
all: requirements pre-build common gw api integration stream
|
||||
@ -14,6 +14,7 @@ pre-build:
|
||||
rm -rf proto
|
||||
mkdir -p proto/chirpstack-api
|
||||
cp -r ../proto/* proto/chirpstack-api/
|
||||
mv proto/chirpstack-api/google proto/google
|
||||
sed -i 's@^import "common/@$(PACKAGE_NAME)common/@g' `find proto/chirpstack-api -type f -name "*.proto*"`
|
||||
sed -i 's@^import "gw/@$(PACKAGE_NAME)gw/@g' `find proto/chirpstack-api -type f -name "*.proto*"`
|
||||
sed -i 's@^import "api/@$(PACKAGE_NAME)api/@g' `find proto/chirpstack-api -type f -name "*.proto*"`
|
||||
|
Reference in New Issue
Block a user