Skip to content

Commit

Permalink
[hotfix] generate udf proto semaphore step (apache#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaref committed Feb 21, 2024
1 parent db6c533 commit b009ed6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ blocks:
jobs:
- name: compile_ci
commands:
- make install-protoc install-protoc-gen-go generate-udf-protos
# Cache restore maven
- cache restore "$CACHE_PREFIX"-maven-cache
- source tools/ci/maven-utils.sh
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ MK_INCLUDE_VERSION ?= v0.937.0
}
### END MK-INCLUDE UPDATE ###

.PHONY: install-protoc-gen-go
install-protoc-gen-go: # install dependencies for compling proto files to golang code.
GOBIN=$(BIN_PATH) go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.32.0

.PHONY: generate-udf-protos
generate-udf-protos:
protoc cc-flink-extensions/cc-flink-udf-adapter-api/api/v1/*.proto \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
--proto_path=.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

syntax = "proto3";

option go_package = "github.com/confluentinc/flink/udf/extractor/api/v1;v1";
option go_package = "github.com/confluentinc/flink/cc-flink-extensions/cc-flink-udf-adapter-api/api/v1;v1";
option java_package = "io.confluent.flink.udf.extractor.v1";
option java_multiple_files = true;

Expand Down

0 comments on commit b009ed6

Please sign in to comment.