Skip to content

Add bzl_library targets for Stardoc compatibility#2620

Closed
aherrmann wants to merge 1 commit intobazel-contrib:masterfrom
aherrmann:bzl_library
Closed

Add bzl_library targets for Stardoc compatibility#2620
aherrmann wants to merge 1 commit intobazel-contrib:masterfrom
aherrmann:bzl_library

Conversation

@aherrmann
Copy link
Copy Markdown
Member

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Adds bzl_library targets for //go:go_lib and //proto:proto_lib. The latter is a dependency of //go:go_lib.
These targets are required to generate Stardoc documentation for rule sets that themselves depend on rules_go.

Which issues(s) does this PR fix?

Fixes #2619

As well as `@io_bazel_rules_go//proto:proto_lib` as a dependency of
`@io_bazel_rules_go//go:go_lib`. This is needed to generate Stardoc
documentation for rule sets that themselves depend on `rules_go`.
@jayconrod
Copy link
Copy Markdown
Collaborator

I'd prefer to go with #2621 instead of this PR. It's important that these targets follow conventions and can be maintained automatically.

@jayconrod jayconrod closed this Aug 24, 2020
@aherrmann
Copy link
Copy Markdown
Member Author

I'd prefer to go with #2621 instead of this PR. It's important that these targets follow conventions and can be maintained automatically.

Yes, that makes sense. Thank you for looking into it so quickly!

yushan26 pushed a commit to yushan26/rules_go that referenced this pull request Jun 16, 2025
…b#2620)

Follow-up to bazel-contrib#2604, fixes a breaking change in v1.2.0-rc0

Note that this toolchain_type became unused in that PR. We leave behind
an alias to make this a non-breaking change.

Verified in a downstream repo that requires the toolchain_type to
register pre-built `protoc`:
https://github.com/aspect-build/toolchains_protoc/pull/50/files

---------

Co-authored-by: Richard Levasseur <rlevasseur@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rules_go provides no bzl_library targets

3 participants