Update distribution docs for new Bazel dist scheme.
diff --git a/distro/README.md b/distro/README.md
index 7e309ed..5671d3b 100644
--- a/distro/README.md
+++ b/distro/README.md
@@ -17,140 +17,30 @@
## Step 2: Update Bazel
-- Edit `WORKSPACE`
-- There are probably 7 places to edit
+- Edit `distdir_deps.bzl`
- Merge the PR
Sample diff:
```
-***************
-*** 161,167 ****
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz",
- # bazelbuild/platforms
-! "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
- # bazelbuild/rules_cc
---- 161,167 ----
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz",
- # bazelbuild/platforms
-! "platforms-0.0.2.tar.gz",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
- # bazelbuild/rules_cc
-***************
-*** 203,209 ****
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
- # bazelbuild/platforms
-! "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
- # bazelbuild/rules_cc
---- 203,209 ----
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
- # bazelbuild/platforms
-! "platforms-0.0.2.tar.gz": "48a2d8d343863989c232843e01afc8a986eb8738766bfd8611420a7db8f6f0c3",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
- # bazelbuild/rules_cc
-***************
-*** 268,276 ****
- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
- ],
- # bazelbuild/platforms
-! "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
-! "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
-! "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- ],
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
---- 268,276 ----
- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
- ],
- # bazelbuild/platforms
-! "platforms-0.0.2.tar.gz": [
-! "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
-! "https://github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
- ],
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
-***************
-*** 563,569 ****
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz",
- # bazelbuild/platforms
-! "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
- # bazelbuild/rules_cc
---- 563,569 ----
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz",
- # bazelbuild/platforms
-! "platforms-0.0.2.tar.gz",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
- # bazelbuild/rules_cc
-***************
-*** 598,604 ****
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
- # bazelbuild/platforms
-! "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
- # bazelbuild/rules_cc
---- 598,604 ----
- # bazelbuild/bazel-skylib
- "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
- # bazelbuild/platforms
-! "platforms-0.0.2.tar.gz": "48a2d8d343863989c232843e01afc8a986eb8738766bfd8611420a7db8f6f0c3",
- # bazelbuild/rules_java
- "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
- # bazelbuild/rules_cc
-***************
-*** 637,643 ****
- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
- ],
- # bazelbuild/platforms
-! "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
- "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- ],
---- 637,643 ----
- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
- ],
- # bazelbuild/platforms
-! "platforms-0.0.2.tar.gz": [
- "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- ],
-***************
-*** 747,757 ****
-
- http_archive(
- name = "platforms",
-! sha256 = "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
-! strip_prefix = "platforms-46993efdd33b73649796c5fc5c9efb193ae19d51",
- urls = [
-! "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
-! "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
- ],
- )
-
---- 747,756 ----
-
- http_archive(
- name = "platforms",
-! sha256 = "48a2d8d343863989c232843e01afc8a986eb8738766bfd8611420a7db8f6f0c3",
- urls = [
-! "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
-! "https://github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
- ],
- )
+diff --git a/distdir_deps.bzl b/distdir_deps.bzl
+index ed49a563bc..1739a25c2a 100644
+--- a/distdir_deps.bzl
++++ b/distdir_deps.bzl
+@@ -20,11 +20,11 @@ DIST_DEPS = {
+ #
+ ########################################
+ "platforms": {
+- "archive": "platforms-0.0.2.tar.gz",
+- "sha256": "48a2d8d343863989c232843e01afc8a986eb8738766bfd8611420a7db8f6f0c3",
++ "archive": "platforms-0.0.3.tar.gz",
++ "sha256": "460caee0fa583b908c622913334ec3c1b842572b9c23cf0d3da0c2543a1a157d",
+ "urls": [
+- "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
+- "https://github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
++ "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.3/platforms-0.0.3.tar.gz",
++ "https://github.com/bazelbuild/platforms/releases/download/0.0.3/platforms-0.0.3.tar.gz",
+ ],
+ "used_in": [
+ "additional_distfiles",
```