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 run //:gazelle works perfectly in this case. However, bazel run //:gazelle -- some_dir doesn't work. Only proto_library rules are generated, all other rules suchs as proto_compile rules are not generated. I have to manually pass arguments like bazel run //:gazelle -- -proto_configs=.gazelle-proto-config.yaml -proto_imports_in=gazelle-proto-imports.csv some_dir for it to work.
The text was updated successfully, but these errors were encountered:
I figured this out by looking at bazel-bin/gazelle-runner.bash. You need to prefix the arguments with -args, eg bazel run //:gazelle -- -args example/. That should be changed or the documentation fixed, but that's the answer to the mystery.
I configured proto_gazelle in my BUILD
bazel run //:gazelle
works perfectly in this case. However,bazel run //:gazelle -- some_dir
doesn't work. Onlyproto_library
rules are generated, all other rules suchs asproto_compile
rules are not generated. I have to manually pass arguments likebazel run //:gazelle -- -proto_configs=.gazelle-proto-config.yaml -proto_imports_in=gazelle-proto-imports.csv some_dir
for it to work.The text was updated successfully, but these errors were encountered: