Skip to content

Commit d9523f3

Browse files
authored
Update docs for 0.8.1 (#134)
1 parent 7ea48a1 commit d9523f3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ language-specific `*_proto_repositories` rule(s):
9292
git_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

go/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,21 @@ func main() {
129129
The preferred strategy is to use the magic token `go_default_library`.
130130
When 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

134149
Consult source files in the

0 commit comments

Comments
 (0)