+1!
On Wed, 28 Jun 2017 at 18:21 Kristina <notifications@github.com> wrote:

> Right now we print something like:
>
> ** Please add the following dependencies:
>   //:C  to //:A
>
> Now that buildozer is open sourced, it would be nice to give people a
> one-liner to run.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/bazelbuild/bazel/issues/3285>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABUIFxn0FL_wRhVUmDkFCrhFcJOiYPOdks5sIm9-gaJpZM4OIH7W>
> .
>
 For future reference:
This seems to be the test: https://github.com/bazelbuild/bazel/blob/66437a0173488ca4e77aab8c41d5454871c8c6a2/src/test/shell/bazel/local_repository_test_jdk8.sh#L98
This seems to be the prod code:
https://github.com/bazelbuild/bazel/blob/66437a0173488ca4e77aab8c41d5454871c8c6a2/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/DependencyModule.java#L337
Print buildozer command for "add the following deps" message
Right now we print something like:

```
** Please add the following dependencies:
  //:C  to //:A
```

Now that buildozer is open sourced, it would be nice to give people a one-liner to run.
src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/DependencyModule.java
src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/DependencyModule.java
diff --git a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/DependencyModule.java b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/DependencyModule.java
index 7d2ddb46b768c3..7167756fb9563f 100644
--- a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/DependencyModule.java
+++ b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency/DependencyModule.java
@@ -334,7 +334,8 @@ public String get(Iterable<JarOwner> missing, String recipient, boolean useColor
         }
 
         return String.format(
-            "%s** Please add the following dependencies:%s\n  %s to %s\n\n",
+            "%1$s ** Please add the following dependencies:%2$s \n  %3$s to %4$s \n" +
+            "%1$s ** You can use the following buildozer command:%2$s \nbuildozer 'add deps %3$s' %4$s \n\n",
             useColor ? "\033[35m\033[1m" : "",
             useColor ? "\033[0m" : "",
             missingTargetsStr.toString(),
