Exclude Go dependencies from builders

Adds go.mod and go.sum to the list of excluded files for cmake and
msvc trybots.

Bug: chromium:342602621
Change-Id: Ic557ee1a2fe35fdc5ae2f7fa2590163e883cce71
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/190583
Commit-Queue: Brian Sheedy <bsheedy@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Auto-Submit: Brian Sheedy <bsheedy@google.com>
diff --git a/infra/config/global/generated/commit-queue.cfg b/infra/config/global/generated/commit-queue.cfg
index b70ccb6..1aeab6f 100644
--- a/infra/config/global/generated/commit-queue.cfg
+++ b/infra/config/global/generated/commit-queue.cfg
@@ -221,6 +221,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-linux-clang-dbg-x64-asan"
@@ -247,6 +253,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-linux-clang-dbg-x64-ubsan"
@@ -273,6 +285,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-linux-clang-rel-x64"
@@ -299,6 +317,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-linux-clang-rel-x64-asan"
@@ -325,6 +349,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-linux-clang-rel-x64-ubsan"
@@ -351,6 +381,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-mac-dbg"
@@ -377,6 +413,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-mac-rel"
@@ -403,6 +445,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-win-msvc-dbg-x64"
@@ -429,6 +477,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/cmake-win-msvc-rel-x64"
@@ -455,6 +509,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/dawn_analysis"
@@ -630,6 +690,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/win-msvc-rel-x64"
@@ -656,6 +722,12 @@
           path_regexp: "tools/src/.+"
           exclude: true
         }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "go\\.(mod|sum)"
+          exclude: true
+        }
       }
       retry_config {
         single_quota: 1
diff --git a/infra/config/global/main.star b/infra/config/global/main.star
index ec625d4..507ed01 100755
--- a/infra/config/global/main.star
+++ b/infra/config/global/main.star
@@ -187,6 +187,11 @@
         path_regexp = "tools/src/.+",
         exclude = True,
     ),
+    # Go dependencies.
+    cq.location_filter(
+        path_regexp = "go\\.(mod|sum)",
+        exclude = True,
+    ),
 ]
 
 luci.notifier(