Repository: kythe/kythe (language: rust)

Issue:
Kythe broken with Bazel@HEAD with  flip of --incompatible_check_sharding_support
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3050#018856c7-dd6a-42c5-b17d-749f9083fe4c

Platform : Linux 20.04LTS

Logs :  

```
ERROR: /var/lib/buildkite-agent/builds/bk-docker-j2dn/bazel-downstream-projects/kythe/kythe/go/util/riegeli/BUILD:30:8: Testing //kythe/go/util/riegeli:riegeli_test (shard 10 of 10) failed: Sharding requested, but the test runner did not advertise support for it by touching TEST_SHARD_STATUS_FILE. Either remove the 'shard_count' attribute, use a test runner that supports sharding or temporarily disable this check via --noincompatible_check_sharding_support.
(06:43:43) ERROR: Sharding requested, but the test runner did not advertise support for it by touching TEST_SHARD_STATUS_FILE. Either remove the 'shard_count' attribute, use a test runner that supports sharding or temporarily disable this check via --noincompatible_check_sharding_support.
```
Reference :  https://github.com/bazelbuild/bazel/pull/18354#issuecomment-1556811277


CC @Wyverald 


Steps:
```

git clone -v https://github.com/kythe/kythe.git
git reset 3f08ed73d3d17b5812f29f6140a8c04f1abdd763 --hard
export USE_BAZEL_VERSION=f482faeb4f2c03022b3bf0e116c9882632466b6c
sudo apt update && sudo apt -y install bison flex uuid-dev asciidoc graphviz source-highlight
bazel build //kythe/...

```




Discussion / hints:

Fix patch:
diff --git a/setup.bzl b/setup.bzl
index 0989eb556a..0356f2e4e8 100644
--- a/setup.bzl
+++ b/setup.bzl
@@ -35,13 +35,10 @@ def kythe_rule_repositories():
     )
 
     maybe(
-        http_archive,
+        github_archive,
         name = "io_bazel_rules_go",
-        sha256 = "6dc2da7ab4cf5d7bfc7c949776b1b7c733f05e56edc4bcd9022bb249d2e2a996",
-        urls = [
-            "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.1/rules_go-v0.39.1.zip",
-            "https://github.com/bazelbuild/rules_go/releases/download/v0.39.1/rules_go-v0.39.1.zip",
-        ],
+        repo_name = "bazelbuild/rules_go",
+        commit = "f5aa81cecbaf966fb9f749d4cd653ff16c9a7003",
     )
 
     maybe(


Test patch: