Repository rules: add the load statement to the example Add the needed load statements to the example WORKSPACE files. In this way, the examples work if blindly copied and pasted. Change-Id: I661ea632781f575f51f71d6e53a405cf81c2de2e PiperOrigin-RevId: 239764071
diff --git a/tools/build_defs/repo/http.bzl b/tools/build_defs/repo/http.bzl index 0e3ae08..4b763e2 100644 --- a/tools/build_defs/repo/http.bzl +++ b/tools/build_defs/repo/http.bzl
@@ -264,6 +264,8 @@ following lines are added to `~/chat-app/WORKSPACE`: ```python + load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + http_archive( name = "my_ssl", urls = ["http://example.com/openssl.zip"], @@ -314,6 +316,8 @@ WORKSPACE file: ```python + load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") + http_file( name = "my_deb", urls = ["http://example.com/package.deb"], @@ -357,6 +361,8 @@ added to `~/chat-app/WORKSPACE`: ```python + load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar") + http_jar( name = "my_ssl", url = "http://example.com/openssl-0.2.jar",