Skip to content

Commit 74e87e6

Browse files
authored
Add provides GoInfo to source and library rules (#4458)
**What type of PR is this?** Bug fix **What does this PR do? Why is it needed?** Adds the missing `provides` tag to go_library and go_source **Which issues(s) does this PR fix?** **Other notes for review**
1 parent 3c2b00b commit 74e87e6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

go/private/rules/library.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ go_library = rule(
197197
} | CGO_ATTRS,
198198
fragments = CGO_FRAGMENTS,
199199
toolchains = [GO_TOOLCHAIN] + CGO_TOOLCHAINS,
200+
provides = [GoInfo],
200201
doc = """This builds a Go library from a set of source files that are all part of
201202
the same package.<br><br>
202203
***Note:*** For targets generated by Gazelle, `name` is typically the last component of the path,

go/private/rules/source.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ go_source = rule(
8282
"_cgo_context_data": attr.label(default = "//:cgo_context_data_proxy"),
8383
},
8484
toolchains = [GO_TOOLCHAIN],
85+
provides = [GoInfo],
8586
doc = """This declares a set of source files and related dependencies that can be embedded into one of the
8687
other rules.
8788
This is used as a way of easily declaring a common set of sources re-used in multiple rules.<br><br>

0 commit comments

Comments
 (0)