Skip to content
Open
Show file tree
Hide file tree
Changes from 8 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
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ lintfix: $(BIN)/golangci-lint $(BIN)/buf ## Automatically fix some lint errors
golangci-lint run --fix --modules-download-mode=readonly --timeout=3m0s
buf format -w

.PHONY: generate-annotations
generate-annotations: $(BIN)/buf $(BIN)/protoc-gen-go ## Generate only the proto annotations (no protoc-gen-connect-go needed)
cd ./cmd/protoc-gen-connect-go && buf generate

.PHONY: generate
generate: $(BIN)/buf $(BIN)/protoc-gen-go $(BIN)/protoc-gen-connect-go $(BIN)/license-header ## Regenerate code and licenses
generate: generate-annotations $(BIN)/buf $(BIN)/protoc-gen-go $(BIN)/protoc-gen-connect-go $(BIN)/license-header ## Regenerate code and licenses
go mod tidy
cd ./internal/conformance && go mod tidy
buf generate
Expand Down
13 changes: 13 additions & 0 deletions cmd/protoc-gen-connect-go/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: v2
plugins:
- local: protoc-gen-go
out: gen
opt: paths=source_relative
# Currently, buf doesn't support per-module generation config, which
# is required to run a different set of plugins/plugin options for
# the testdata modules. As a workaround, we use `inputs` to restrict
# the generation config in this file to only the "proto" module, and
# have separate buf.gen.yaml files for the testdata modules.
# See: https://github.com/bufbuild/buf/issues/3060
inputs:
- directory: proto
13 changes: 13 additions & 0 deletions cmd/protoc-gen-connect-go/buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: v2
modules:
- path: proto
# this must be declared as a module in the same workspace as "proto",
# so it can import symbols from annotations.proto.
- path: internal/testdata/methodtimeouts
Copy link
Author

@huyquanha huyquanha Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

presumably we could also add all the other testdata modules here too, but it's not strictly required right now.

lint:
use:
- STANDARD
disallow_comment_ignores: true
breaking:
use:
- WIRE_JSON

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

150 changes: 150 additions & 0 deletions cmd/protoc-gen-connect-go/gen/connectrpc/go/options/v1/connect.pb.go

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
@@ -0,0 +1,9 @@
version: v2
plugins:
- local: protoc-gen-go
out: gen
opt: paths=source_relative
- local: protoc-gen-connect-go
out: gen
opt: paths=source_relative
clean: true
Loading