From 8808f95c70372a48a20262fb697783c5c061a573 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 22 Mar 2019 02:59:01 -0700 Subject: [PATCH] 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 --- tools/build_defs/repo/http.bzl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/build_defs/repo/http.bzl b/tools/build_defs/repo/http.bzl index 0e3ae08bf1179b..4b763e24d2003d 100644 --- a/tools/build_defs/repo/http.bzl +++ b/tools/build_defs/repo/http.bzl @@ -264,6 +264,8 @@ Examples: 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 @@ Examples: 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 @@ Examples: 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",