Skip to content

Commit e9cc264

Browse files
committed
fix comments
1 parent c50e9c7 commit e9cc264

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pkg/engine/sdk.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@
1212
// The Protocol Buffer schema is published at buf.build/sqlc/sqlc and ensures
1313
// binary compatibility between sqlc and plugins.
1414
//
15-
// # Generating engine.pb.go
15+
// # Generating engine.pb.go and engine_grpc.pb.go
1616
//
1717
// Run from the repository root:
1818
//
19-
// make proto-engine
19+
// make proto-engine-plugin
2020
//
2121
// or:
2222
//
23-
// protoc --go_out=. --go_opt=module=github.com/sqlc-dev/sqlc protos/engine/engine.proto
23+
// protoc -I. \
24+
// --go_out=. --go_opt=module=github.com/sqlc-dev/sqlc --go_opt=Mprotos/engine/engine.proto=github.com/sqlc-dev/sqlc/pkg/engine \
25+
// --go-grpc_out=. --go-grpc_opt=module=github.com/sqlc-dev/sqlc --go-grpc_opt=Mprotos/engine/engine.proto=github.com/sqlc-dev/sqlc/pkg/engine \
26+
// protos/engine/engine.proto
2427
//
2528
// Example plugin:
2629
//
@@ -36,7 +39,7 @@
3639
// })
3740
// }
3841
//
39-
//go:generate protoc -I../.. --go_out=../.. --go_opt=module=github.com/sqlc-dev/sqlc protos/engine/engine.proto
42+
//go:generate sh -c "cd ../.. && make proto-engine-plugin"
4043
package engine
4144

4245
import (

0 commit comments

Comments
 (0)