Skip to content

Commit 95dac32

Browse files
author
Jonathon Belotti
authored
Use http_archive not git_repository
1 parent 0e24cd9 commit 95dac32

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,27 @@ boto3==1.9.253
1111
```
1212

1313
In `WORKSPACE`
14+
1415
```
1516
rules_python_external_version = "{COMMIT_SHA}"
1617
17-
git_repository(
18+
http_archive(
1819
name = "rules_python_external",
19-
commit = rules_python_external_version,
20-
remote = "[email protected]:dillon-giacoppo/rules_python_external.git",
21-
shallow_since = "1572846707 +1100",
20+
sha256 = "", # Fill in with correct sha256 of your COMMIT_SHA version
21+
strip_prefix = "rules_python_external-{version}".format(version = rules_python_external_version),
22+
url = "https://github.com/dillon-giacoppo/rules_python_external/archive/{version}.zip".format(version = rules_python_external_version),
2223
)
2324
24-
2525
load("@rules_python_external//:defs.bzl", "pip_repository")
2626
2727
pip_repository(
2828
name = "py_deps",
29-
requirements = "//:requirements.txt",
29+
requirements = "//third_party:requirements.txt",
3030
)
3131
```
3232

33-
In `BUILD`
33+
Example `BUILD` file.
34+
3435
```
3536
load("@py_deps//:requirements.bzl", "requirement")
3637

0 commit comments

Comments
 (0)