File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
1616SHA=$( shasum -a 256 $ARCHIVE | awk ' {print $1}' )
1717
1818cat << EOF
19- ## Using Bzlmod with Bazel 6
19+ ## Using BZLMOD
2020
21211. Enable with \` common --enable_bzlmod\` in \` .bazelrc\` .
22222. Add to your \` MODULE.bazel\` file:
@@ -27,17 +27,5 @@ bazel_dep(name = "rules_distroless", version = "${TAG:1}")
2727
2828## Using WORKSPACE
2929
30- Paste this snippet into your ` WORKSPACE.bazel` file:
31-
32- \`\`\` starlark
33- load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
34- http_archive(
35- name = "rules_distroless",
36- sha256 = "${SHA} ",
37- strip_prefix = "${PREFIX} ",
38- url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/${TAG} /${ARCHIVE} ",
39- )
30+ We do not support WORKSPACE. Use Bzlmod instead.
4031EOF
41-
42- awk ' f;/--SNIP--/{f=1}' e2e/smoke/WORKSPACE.bazel
43- echo " \`\`\` "
You can’t perform that action at this time.
0 commit comments