-
Notifications
You must be signed in to change notification settings - Fork 21
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
chore: add bzlmod #46
Conversation
de0e767
to
3157586
Compare
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!
So far the repo itself relies only on fetching via WORKSPACE, but produces a ruleset that users can consume with bzlmod Fixes #33
Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
# Broken due to stardoc usage, see | ||
# https://github.com/bazelbuild/stardoc/issues/117#issuecomment-1380744704 | ||
- folder: . | ||
bzlmodEnabled: true |
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.
An alternative could be to set --deleted_packages=docs
. That will exclude //docs
but will still be able to build and test the rest on CI.
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.
That would be nice... but there's no way to make that flag conditional on bzlmod so we'd have to introduce a --config like aspect-build/rules_js@48d0228#diff-874728f39b9bba99bc8a2949132b868dd74225faaa504ae43810a45516eaa613R76 (which has that complexity for exactly the same reason)
I hear commits are landing in Bazel to fix stardoc so I'd rather keep this simple and wait for a proper fix, I think
@aherrmann if this LGTY would you approve pls? |
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
So far the repo itself relies only on fetching via WORKSPACE, but produces a ruleset that users can consume with bzlmod
Fixes #33