Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ jobs:

- name: Verify generated code is current
run: |
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate --template buf.gen.go.yaml --exclude-path proto/cerebro
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate --template buf.gen.ts.yaml
git diff --exit-code -- gen packages/connect/src/gen
test -z "$(git status --porcelain -- gen packages/connect/src/gen)"

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
paths:
- "proto/**"
- "buf.yaml"
- "buf.gen.yaml"
- "buf.gen.go.yaml"
- "buf.gen.ts.yaml"
- "gen/**"
- "packages/connect/src/gen/**"
- ".github/workflows/contracts.yml"
Expand Down Expand Up @@ -36,6 +37,7 @@ jobs:

- name: Verify generated outputs
run: |
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate --template buf.gen.go.yaml --exclude-path proto/cerebro
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate --template buf.gen.ts.yaml
git diff --exit-code -- gen packages/connect/src/gen
test -z "$(git status --porcelain -- gen packages/connect/src/gen)"
3 changes: 2 additions & 1 deletion .github/workflows/droid-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ jobs:
npm run db:validate
go mod download
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 lint
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate --template buf.gen.go.yaml --exclude-path proto/cerebro
go run github.com/bufbuild/buf/cmd/buf@v1.59.0 generate --template buf.gen.ts.yaml
git diff --exit-code -- gen packages/connect/src/gen
test -z "$(git status --porcelain -- gen packages/connect/src/gen)"
make lint
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ db-validate: ## Validate the Prisma schema

.PHONY: generate
generate: ## Regenerate Go + TypeScript protobuf clients (needs network)
@go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) generate
@go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) generate --template buf.gen.go.yaml --exclude-path proto/cerebro
@go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) generate --template buf.gen.ts.yaml

.PHONY: generate-check
generate-check: generate ## Verify the generated clients are up to date
Expand Down
4 changes: 0 additions & 4 deletions buf.gen.yaml → buf.gen.go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ plugins:
opt:
- paths=source_relative
- package_suffix=connect
- remote: buf.build/bufbuild/es:v2.10.0
out: packages/connect/src/gen
opt:
- target=ts
6 changes: 6 additions & 0 deletions buf.gen.ts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: v2
plugins:
- remote: buf.build/bufbuild/es:v2.10.0
out: packages/connect/src/gen
opt:
- target=ts
4 changes: 4 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ lint:
breaking:
use:
- FILE
except:
# cerebro/v1 go_package is intentionally repointed to the shared Cerebro Go
# SDK module; the wire contract is unchanged.
- FILE_SAME_GO_PACKAGE
2 changes: 1 addition & 1 deletion gen/aperio/contracts/v1/events.pb.go

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

Loading
Loading