From 87faa2ffcded4a4f90e93dcad69feae2ddafe655 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 23 Sep 2022 16:36:34 -0700 Subject: [PATCH 1/2] doc: point users to the release page Otherwise the README has stale install instructions as it's not updated as part of the release process. --- README.md | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 529b1f8..11ef453 100644 --- a/README.md +++ b/README.md @@ -12,23 +12,8 @@ For the list of Proto rules, see the Bazel ## Getting Started -To get started with `rules_proto`, add the following to your `WORKSPACE` file: - -```starlark -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "rules_proto", - sha256 = "e017528fd1c91c5a33f15493e3a398181a9e821a804eb7ff5acdd1d2d6c2b18d", - strip_prefix = "rules_proto-4.0.0-3.20.0", - urls = [ - "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.20.0.tar.gz", - ], -) -load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") -rules_proto_dependencies() -rules_proto_toolchains() -``` +To get started with `rules_proto`, add the `WORKSPACE` file snippet from the +[latest release](https://github.com/bazelbuild/rules_proto/releases). Then, in your `BUILD` files, import and use the rules: From 59de2467fc057baea2539bd92c22f12571ee8427 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 23 Sep 2022 16:38:11 -0700 Subject: [PATCH 2/2] fix: bad json syntax --- .bcr/metadata.template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json index c29a377..07d71fd 100644 --- a/.bcr/metadata.template.json +++ b/.bcr/metadata.template.json @@ -1,5 +1,5 @@ { - "homepage": "https://github.com/bazelbuild/rules_proto" + "homepage": "https://github.com/bazelbuild/rules_proto", "maintainers": [], "versions": [], "yanked_versions": {}