-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate docs for pkg_install #897
Comments
On a second thought, I think the dependencies like skylib paths and rules_python needs to be added to This also follows how other rules_* handles things (that the bzl_library stays beside the .bzl file), e.g. https://github.com/bazelbuild/rules_python/blob/main/python/BUILD.bazel#L52. |
... next to the .bzl files. This is because the //doc_build package is not loadable when rules_pkg itself is not the root Bazel module, because stardoc is a dev_dependency. So, //doc_build:rules_pkg_lib is not usable by clients of rules_pkg. Move the target to //pkg, next to the .bzl files. Also add @rules_python//python:defs_bzl used by pkg_install. Link: bazelbuild#897 Signed-off-by: HONG Yifan <[email protected]>
... next to the .bzl files. This is because the //doc_build package is not loadable when rules_pkg itself is not the root Bazel module, because stardoc is a dev_dependency. So, //doc_build:rules_pkg_lib is not usable by clients of rules_pkg. Move the target to //pkg, next to the .bzl files. Also add @rules_python//python:defs_bzl used by pkg_install. Link: bazelbuild#897 Signed-off-by: HONG Yifan <[email protected]>
... next to the .bzl files. This is because the //doc_build package is not loadable when rules_pkg itself is not the root Bazel module, because stardoc is a dev_dependency. So, //doc_build:rules_pkg_lib is not usable by clients of rules_pkg. Move the target to //pkg, next to the .bzl files. Also add @rules_python//python:defs_bzl used by pkg_install. Link: bazelbuild#897 Signed-off-by: HONG Yifan <[email protected]>
What is wrong with adding pkg_install like all the other docs. |
(copy pasted from off-thread chat) I am not sure what you mean by your comment. What I need is one bzl_library that contains install.bzl & @rules_python//python:defs_bzl. As a client, I can't put
I could add The
This is because stardoc is a dev dependency of rules_pkg. Which, I think, is WAI; it does not make sense to make stardoc a non-dev dependency. A lot of ther modules do the exact same thing as well. So I could add deps to |
What do you mean by "I could add @rules_python//python:defs_bzl to my stardoc(), " |
No. I am trying to run stardoc on my bzl files, which relies on rules_pkg. For example, the dependency is here: and I am trying to run stardoc here: To generate docs for |
Sigh. Not having the StarlaryLibaryInfo as a bazel built in is a constant pain. |
@aiuto Are we okay to add pkg_install to the generated docs?
In particular, I think the following needs to be done:
@rules_pkg//doc_build:rules_pkg_lib
rules_pkg/doc_build/BUILD
Lines 52 to 65 in 5c6aec6
The text was updated successfully, but these errors were encountered: