feat: add skylib-gazelle compatible target for //android/rules.bzl#270
feat: add skylib-gazelle compatible target for //android/rules.bzl#270vpanta wants to merge 2 commits intobazelbuild:mainfrom
//android/rules.bzl#270Conversation
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_librarytarget for//android/rules.bzlwhich 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.