@@ -8,11 +8,12 @@ import (
88"strings"
99"text/template"
1010
11+ "github.com/pkg/errors"
12+ "github.com/urfave/cli/v2"
13+
1114mcli "github.com/go-micro/cli/cmd"
1215"github.com/go-micro/cli/generator"
1316tmpl "github.com/go-micro/cli/generator/template"
14- "github.com/pkg/errors"
15- "github.com/urfave/cli/v2"
1617)
1718
1819var flags []cli.Flag = []cli.Flag {
@@ -286,20 +287,17 @@ func clientComments(name, dir string) []string {
286287
287288func protoComments (name , dir string , sqlc bool ) ([]string , error ) {
288289tmp := `
289- download protoc zip packages (protoc-$VERSION-$PLATFORM.zip) and install:
290-
291- visit https://github.com/protocolbuffers/protobuf/releases/latest
292-
293- download protobuf for go-micro:
290+ install requirements:
294291
295- go get -u google.golang.org/protobuf/proto
296- go install github.com/golang/protobuf/protoc-gen-go@latest
297- go install go-micro.dev/v4/cmd/protoc-gen-micro@v4
292+ protoc is needed for code generation. You can either install it using your
293+ pacakge manager, or manually install it by downloading the protoc zip packages
294+ (protoc-$VERSION-$PLATFORM.zip) from https://github.com/protocolbuffers/protobuf/releases/latest
295+ and installing its contents.
298296
299297compile the proto file {{ .Name }}.proto and install dependencies:
300298
301299cd {{ .Dir }}
302- make proto {{ if .Sqlc }}sqlc {{ end }}update tidy`
300+ make proto init {{ if .Sqlc }}sqlc {{ end }}update tidy`
303301
304302t , err := template .New ("comments" ).Parse (tmp )
305303if err != nil {
0 commit comments