summaryrefslogtreecommitdiffhomepage
path: root/tools/bazel_gazelle.patch
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-11-23 14:43:42 -0800
committergVisor bot <gvisor-bot@google.com>2020-11-23 14:45:34 -0800
commit756bc3e52b2344dc48e0cefb929b0ebf1b9becf6 (patch)
tree9c812e5e2074f35d19280e271bf96e91bdf9e04c /tools/bazel_gazelle.patch
parent3deb5d0c043dcfd8523425792c6cf8ec13b19868 (diff)
Clean up build output.
This change also simplifies and documents the build_cmd pipeline, and reduces general noise for debugging Makefile issues. It also drops the mapping for /etc/docker/daemon.json, which if it does not exist initially will create this as a directory (causing lots of confusion and breaks). PiperOrigin-RevId: 343932456
Diffstat (limited to 'tools/bazel_gazelle.patch')
-rw-r--r--tools/bazel_gazelle.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/bazel_gazelle.patch b/tools/bazel_gazelle.patch
new file mode 100644
index 000000000..e35f38933
--- /dev/null
+++ b/tools/bazel_gazelle.patch
@@ -0,0 +1,24 @@
+diff -r -u2 a/language/go/resolve.go b/language/go/resolve.go
+--- a/language/go/resolve.go 2020-10-02 14:22:18.000000000 -0700
++++ b/language/go/resolve.go 2020-11-17 19:40:59.770648029 -0800
+@@ -20,5 +20,4 @@
+ "fmt"
+ "go/build"
+- "log"
+ "path"
+ "regexp"
+@@ -80,5 +79,5 @@
+ resolve = ResolveGo
+ }
+- deps, errs := imports.Map(func(imp string) (string, error) {
++ deps, _ := imports.Map(func(imp string) (string, error) {
+ l, err := resolve(c, ix, rc, imp, from)
+ if err == skipImportError {
+@@ -95,7 +94,4 @@
+ return l.String(), nil
+ })
+- for _, err := range errs {
+- log.Print(err)
+- }
+ if !deps.IsEmpty() {
+ if r.Kind() == "go_proto_library" {