It has became really difficult to manage all the bazel external dependencies. One option I have now is to write a small script to check all the rules in the WORKSPACE to find outdated external dependencies. But this won't work for the dependencies introduced by other rules, eg. rules_go.
Is there a way to find such dependencies programmatically?
Also as the rules_go requires all the transitive external dependencies to be declared in the workspace. In case some of them are no longer needed after updating, is there a way to discover those unneeded external dependencies in WORKSPACE file?
Thanks!
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/0dba3092-7f22-463a-81ec-328b82876921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/fa7f678b-71ac-448b-b548-0e9a8c52d77c%40googlegroups.com.
As far as I know, there is no way to list repository rules on the command line.You could call native.existing_rules() from a macro called at the end of WORKSPACE.If everything listed textually in WORKSPACE, it may be sufficient to parse it with github.com/bazelbuild/buildtools/build and read the syntax tree. This won't catch anything declared inside a macro though.
On Sat, Nov 25, 2017 at 6:25 AM, <ash...@gmail.com> wrote:
Hi all,
It has became really difficult to manage all the bazel external dependencies. One option I have now is to write a small script to check all the rules in the WORKSPACE to find outdated external dependencies. But this won't work for the dependencies introduced by other rules, eg. rules_go.
Is there a way to find such dependencies programmatically?
Also as the rules_go requires all the transitive external dependencies to be declared in the workspace. In case some of them are no longer needed after updating, is there a way to discover those unneeded external dependencies in WORKSPACE file?
Thanks!
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.