File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ language-specific `*_proto_repositories` rule(s):
9292git_repository(
9393 name = " org_pubref_rules_protobuf" ,
9494 remote = " https://github.com/pubref/rules_protobuf" ,
95- tag = " v0.8.0 " ,
95+ tag = " v0.8.1 " ,
9696 # commit = "..." # alternatively, use latest commit on master
9797)
9898
Original file line number Diff line number Diff line change @@ -129,6 +129,21 @@ func main() {
129129The preferred strategy is to use the magic token ` go_default_library ` .
130130When this name is chosen, part 3 is not needed and should be omitted.
131131
132+ ## Using the ` importpath ` attribute in ` go_proto_library `
133+
134+ The preferred approach is now done explicitly via the ` importpath `
135+ attribute provided by ` rules_go ` . See example below (details in
136+ [ tests/custom_go_importpath] ( tests/custom_go_importpath ) ).
137+
138+ ```
139+ go_proto_library(
140+ name = "api_proto",
141+ importpath = "github.com/my/custom/import/path",
142+ protos = ["api.proto"],
143+ with_grpc = True,
144+ )
145+ ```
146+
132147---
133148
134149Consult source files in the
You can’t perform that action at this time.
0 commit comments