Skip to content

Commit

Permalink
Repository rules: add the load statement to the example
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aehlig authored and copybara-github committed Mar 22, 2019
1 parent 3317c4d commit 8808f95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/build_defs/repo/http.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8808f95

Please sign in to comment.