-
Notifications
You must be signed in to change notification settings - Fork 45
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
Include load
in summaries
#216
Conversation
a107264
to
aed67db
Compare
Some tests are failing due to differing repository names. I can look into this when there is general consensus on the approach. I'm also happy to make this new behavior configurable in the template. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I updated the branch after the recent churn, which hopefully should fix test failures.
One nit: I would put a blank line between load(...)
and the usage of the symbol, as in buildifier-formatted output.
src/main/java/com/google/devtools/build/stardoc/rendering/MarkdownUtil.java
Show resolved
Hide resolved
Rules, providers, functions and aspects now have a small `load` statement in their summary. Aspects additionally include a copyable `--aspects` flag.
The WORKSPACE tests are failing since they use a different repo name for Stardoc, which now appears in |
Excellent question! We may have to tag those tests "manual" + bazel version for which the golden was generated; in #232, I am adding a way to auto-update tests whose goldens are valid only for a particular Bazel release. |
I'll wait for #232 then, let me know what I need to do after it has been merged. |
In the interests of brevity and maintainability, we are only interested in the following tests for --noenable_bzlmod: * multiple_files * same_level_file * table_of_contents * local_repository (this one needs no forking)
Otherwise, the test output looks very odd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I took the liberty to fix up the tests, since the merge + necessary tagging and bazelci setup is a bit tricky.
Rules, providers, functions and aspects now have a
load
statement in their summary. Aspects additionally include a copyable--aspects
flag.Fixes #95