mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-02-19 22:59:08 -06:00
* 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
42 lines
1.9 KiB
Bash
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
|