feat: add soft-drop flag to DropRequest (#317)
* feat: add soft-drop flag to DropRequest Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * chore: add space Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * chore: enforce version for protoc Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> --------- Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
.PHONY: all rust go go-deps java
|
||||
.PHONY: all rust go go-deps java cpp check-protoc
|
||||
|
||||
BUILDER_CONTAINER=namely/protoc-all:1.51_2
|
||||
PROTOC_VERSION=3.21.12
|
||||
|
||||
all: rust go java cpp
|
||||
|
||||
rust:
|
||||
check-protoc:
|
||||
@if ! command -v protoc >/dev/null 2>&1; then \
|
||||
echo "Error: protoc is not installed. Please install protoc $(PROTOC_VERSION)."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@CURRENT_PROTOC_VERSION=$$(protoc --version | awk '{print $$2}'); \
|
||||
if [ "$$CURRENT_PROTOC_VERSION" != "$(PROTOC_VERSION)" ]; then \
|
||||
echo "Error: Required protoc version is $(PROTOC_VERSION), but found $$CURRENT_PROTOC_VERSION."; \
|
||||
echo "Please install protoc $(PROTOC_VERSION) to ensure generated code is consistent."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
rust: check-protoc
|
||||
cargo run --manifest-path xtask/Cargo.toml -- generate-rust
|
||||
|
||||
go: go-deps
|
||||
|
||||
Reference in New Issue
Block a user