Name Date Size #Lines LOC

..--

README.mdH A D25-Apr-20251.7 KiB4839

makerel.shH A D25-Apr-20251.8 KiB6849

README.md

1# Updating bazelbuild/platforms
2
3WARNING: These are what worked last time. Reality might be different.
4
5## Step 1: Make the release
6
7- Pick a new version number
8- Update version.bzl
9- Run distro/makerel.sh
10- Go to the [Releases](https://github.com/bazelbuild/platforms/releases) page
11- Draft a new release
12  - Name the release with a version number
13  - Use the version number as the title
14  - Copy the description that makerel.sh produced to the description field.
15  - upload the generated tar file
16
17- use https://github.com/bazelbuild/continuous-integration/blob/HEAD/mirror/mirror.sh to mirror the file
18
19## Step 2: Update Bazel
20
21- Edit `distdir_deps.bzl`
22- Merge the PR
23
24Sample diff:
25
26```
27diff --git a/distdir_deps.bzl b/distdir_deps.bzl
28index ed49a563bc..1739a25c2a 100644
29--- a/distdir_deps.bzl
30+++ b/distdir_deps.bzl
31@@ -20,11 +20,11 @@ DIST_DEPS = {
32     #
33     ########################################
34     "platforms": {
35-        "archive": "platforms-0.0.2.tar.gz",
36-        "sha256": "48a2d8d343863989c232843e01afc8a986eb8738766bfd8611420a7db8f6f0c3",
37+        "archive": "platforms-0.0.3.tar.gz",
38+        "sha256": "460caee0fa583b908c622913334ec3c1b842572b9c23cf0d3da0c2543a1a157d",
39         "urls": [
40-            "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
41-            "https://github.com/bazelbuild/platforms/releases/download/0.0.2/platforms-0.0.2.tar.gz",
42+            "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.3/platforms-0.0.3.tar.gz",
43+            "https://github.com/bazelbuild/platforms/releases/download/0.0.3/platforms-0.0.3.tar.gz",
44         ],
45         "used_in": [
46             "additional_distfiles",
47```
48