You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bazel allows subdirectories within a workspace to be treated as external repositories with by referencing them with local_repository. This is useful for vendoring repositories that already have build files; import paths and labels within the vendored repository don't need to be updated.
Bazel automatically avoids building targets within these repositories. Gazelle should be aware of these repository rules and should avoid indexing and updating build files in these subdirectories.
The text was updated successfully, but these errors were encountered:
Just running into this now - and dependencies are generated incorrectly currently. We have an experimental directory specified as a workaround to include it in bazel build/test //... per default and in the experimental folder now instead of //path/to/dep:go_default_library we get "//experimental/path/to/dep:go_default_library",. I tried to add gazelle:exclude experimental into the root BUILD file as a workaround for now but also that does not work.
Also for our use-case we would be happy for gazelle still to process the files in the local_repository, but just creating dep paths as bazel expects. But also having two separate gazelle commands, one in the root directory and one in the local_repository would also be ok.
Bazel allows subdirectories within a workspace to be treated as external repositories with by referencing them with
local_repository
. This is useful for vendoring repositories that already have build files; import paths and labels within the vendored repository don't need to be updated.Bazel automatically avoids building targets within these repositories. Gazelle should be aware of these repository rules and should avoid indexing and updating build files in these subdirectories.
The text was updated successfully, but these errors were encountered: