Files
hatchet/hack/proto/proto.sh
abelanger5 00c4bbff09 feat(v1): new gRPC API endpoints (#1367)
* wip: api contracts

* feat: implement put workflow version endpoint

* add support for match existing data, get scaffolding in place for additional triggers

* create additional matches

* feat: durable sleep, user event matching

* update protos

* fix: working poc of user events, durable sleep

* add migration

* fix: migration column

* feat: durable event listener

* fix: skip overrides

* fix: input -> output
2025-03-23 18:58:20 -07:00

42 lines
1.9 KiB
Bash

#!/bin/bash
#
# Builds auto-generated protobuf files
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
export PATH="$PATH:$(go env GOPATH)/bin"
protoc --proto_path=api-contracts \
--go_out=./internal/services/shared/proto/v1 \
--go_opt=module=github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1 \
--go-grpc_out=./internal/services/shared/proto/v1 \
--go-grpc_opt=module=github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1 \
v1/shared/condition.proto
protoc --proto_path=api-contracts \
--go_out=./internal/services/shared/proto/v1 \
--go_opt=module=github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1 \
--go-grpc_out=./internal/services/shared/proto/v1 \
--go-grpc_opt=module=github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1 \
v1/dispatcher.proto
protoc --proto_path=api-contracts \
--go_out=./internal/services/shared/proto/v1 \
--go_opt=module=github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1 \
--go-grpc_out=./internal/services/shared/proto/v1 \
--go-grpc_opt=module=github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1 \
v1/workflows.proto
protoc --proto_path=api-contracts/dispatcher --go_out=./internal/services/dispatcher/contracts --go_opt=paths=source_relative \
--go-grpc_out=./internal/services/dispatcher/contracts --go-grpc_opt=paths=source_relative \
dispatcher.proto
protoc --proto_path=api-contracts/events --go_out=./internal/services/ingestor/contracts --go_opt=paths=source_relative \
--go-grpc_out=./internal/services/ingestor/contracts --go-grpc_opt=paths=source_relative \
events.proto
protoc --proto_path=api-contracts/workflows --go_out=./internal/services/admin/contracts --go_opt=paths=source_relative \
--go-grpc_out=./internal/services/admin/contracts --go-grpc_opt=paths=source_relative \
workflows.proto