Skip to content

Commit 21adf1b

Browse files
author
James Sharpe
authored
docs: Update instructions for WORKSPACE (#1423)
1 parent d92732e commit 21adf1b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release_prep.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ TAG=${GITHUB_REF_NAME}
88
# The prefix is chosen to match what GitHub generates for source archives
99
PREFIX="rules_foreign_cc-${TAG}"
1010
ARCHIVE="rules_foreign_cc-$TAG.tar.gz"
11-
git archive --format=tar --prefix="${PREFIX}"/ "${TAG}" | gzip > "$ARCHIVE"
11+
git archive --format=tar --prefix="${PREFIX}"/ "${TAG}" | gzip >"$ARCHIVE"
1212
SHA="$(shasum -a 256 "$ARCHIVE" | awk '{print $1}')"
1313

14-
cat << EOF
14+
cat <<EOF
1515
## Using Bzlmod
1616
1717
1. Enable with \`common --enable_bzlmod\` in \`.bazelrc\`.
@@ -55,6 +55,10 @@ load("@rules_python//python:repositories.bzl", "py_repositories")
5555
5656
py_repositories()
5757
58+
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
59+
60+
protobuf_deps()
61+
5862
EOF
5963

6064
# TODO: add example of how to configure for bzlmod

0 commit comments

Comments
 (0)