-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: add skylib-gazelle compatible target for //android/rules.bzl
#270
base: main
Are you sure you want to change the base?
Conversation
This adds a `bzl_library` target for `//android/rules.bzl` which should match the expected target name when using [`bazelbuild/bazel-skylib`'s gazelle plugin](https://registry.bazel.build/modules/bazel_skylib_gazelle_plugin). Without this, users of the plugin who also depend on these rules will need to manually adjust their configuration.
The |
(it's not clear to me from a cursory search how gazelle is picking up |
Hrm, k, then yeah that'll be trickier. The code generating this is actually a gazelle extension here, but AFAICT it's a fairly "dumb" tool: it just assumes every Since using And if this is a no-go, no worries, I can just override it locally while I see if there's a better fix to the gazelle plugin. And just some context: I'm making a new ruleset based on |
Thanks for the details. Seems then that whether gazelle generates / expects a So presumably then codesbases that are currently loading from And presumably then this would also fail for |
Yep, exactly, it generates it based on the If y'all are ready for folks to migrate to I do wish there were a way we could warn folks using the old load though. For now I've changed this to doing |
This adds a
bzl_library
target for//android/rules.bzl
which should match the expected target name when usingbazelbuild/bazel-skylib
's gazelle plugin. Without this, users of the plugin who also depend on these rules will need to manually adjust their configuration.