2020-12-04 04:55:23 +00:00
|
|
|
# Updating bazelbuild/platforms
|
|
|
|
|
2020-12-04 18:02:31 +00:00
|
|
|
WARNING: These are what worked last time. Reality might be different.
|
|
|
|
|
2020-12-04 04:55:23 +00:00
|
|
|
## Step 1: Make the release
|
|
|
|
|
|
|
|
- Pick a new version number
|
2020-12-05 01:11:58 +00:00
|
|
|
- Run distro/makerel.sh *version*
|
2020-12-04 04:55:23 +00:00
|
|
|
- Go to the [Releases](https://github.com/bazelbuild/platforms/releases) page
|
|
|
|
- Draft a new release
|
|
|
|
- Name the release with a version number
|
|
|
|
- Use the version number as the title
|
2020-12-05 01:11:58 +00:00
|
|
|
- Copy the description that makerel.sh produced to the description field.
|
2020-12-04 04:55:23 +00:00
|
|
|
- upload the generated tar file
|
|
|
|
|
2021-06-15 17:10:48 +00:00
|
|
|
- use https://github.com/bazelbuild/continuous-integration/blob/HEAD/mirror/mirror.sh to mirror the file
|
2020-12-04 04:55:23 +00:00
|
|
|
|
|
|
|
## Step 2: Update Bazel
|
|
|
|
|
2021-01-27 18:41:26 +00:00
|
|
|
- Edit `distdir_deps.bzl`
|
2020-12-04 19:47:55 +00:00
|
|
|
- Merge the PR
|
2020-12-04 04:55:23 +00:00
|
|
|
|
2020-12-04 19:47:55 +00:00
|
|
|
Sample diff:
|
2020-12-04 18:01:20 +00:00
|
|
|
|
|
|
|
```
|
2021-01-27 18:41:26 +00:00
|
|
|
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",
|
2020-12-04 18:01:20 +00:00
|
|
|
```
|