convert some more git repositories to HTTP archives

Faster to download, and can be cached. Archives are from the
same commits as before.
This commit is contained in:
Damien Elmes 2020-12-23 20:42:45 +10:00
parent 38614ab047
commit f6318af59b

View file

@ -31,35 +31,31 @@ def register_repos():
# ) # )
maybe( maybe(
git_repository, http_archive,
name = "io_bazel_rules_rust", name = "io_bazel_rules_rust",
commit = "dfd1200fcdcc0d56d725818ed3a66316517f20a6", strip_prefix = "rules_rust-anki-2020-12-10",
remote = "https://github.com/ankitects/rules_rust", urls = [
shallow_since = "1607578413 +1000", "https://github.com/ankitects/rules_rust/archive/anki-2020-12-10.tar.gz",
],
sha256 = "80a7647c3c1992c434a462bf424b9138c3c9af6c794ac112f636ca7c8c53180e",
) )
# python # python
########## ##########
maybe(
git_repository,
name = "rules_python",
commit = "3927c9bce90f629eb5ab08bbc99a3d3bda1d95c0",
remote = "https://github.com/ankitects/rules_python",
shallow_since = "1604408056 +1000",
)
# native.local_repository( # native.local_repository(
# name = "rules_python", # name = "rules_python",
# path = "../rules_python", # path = "../rules_python",
# ) # )
maybe( maybe(
git_repository, http_archive,
name = "com_github_ali5h_rules_pip", name = "rules_python",
commit = "73953e06fdacb565f224c66f0683a7d8d0ede223", strip_prefix = "rules_python-anki-2020-11-04",
remote = "https://github.com/ankitects/rules_pip", urls = [
shallow_since = "1606453171 +1000", "https://github.com/ankitects/rules_python/archive/anki-2020-11-04.tar.gz",
],
sha256 = "00e444dc3872a87838c2cb0cf50a15d92ca669385b72998f796d2fd6814356a3",
) )
# native.local_repository( # native.local_repository(
@ -67,9 +63,28 @@ def register_repos():
# path = "../rules_pip", # path = "../rules_pip",
# ) # )
maybe(
http_archive,
name = "com_github_ali5h_rules_pip",
strip_prefix = "rules_pip-anki-2020-11-30",
urls = [
"https://github.com/ankitects/rules_pip/archive/anki-2020-11-30.tar.gz",
],
sha256 = "ab4f10967eb87985383a4172d4533dde568b3ff502aa550239eeccead249325b",
)
# javascript # javascript
############## ##############
# maybe(
# http_archive,
# name = "build_bazel_rules_nodejs",
# urls = [
# "file:///c:/anki/release.tar.gz",
# "file:///Users/dae/Work/code/dtop/release.tar.gz",
# ],
# )
maybe( maybe(
http_archive, http_archive,
name = "build_bazel_rules_nodejs", name = "build_bazel_rules_nodejs",
@ -77,16 +92,6 @@ def register_repos():
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"], urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.0.0/rules_nodejs-3.0.0.tar.gz"],
) )
# maybe(
# http_archive,
# name = "build_bazel_rules_nodejs",
# # sha256 = "64a71a64ac58b8969bb19b1c9258a973b6433913e958964da698943fb5521d98",
# urls = [
# "file:///c:/anki/release.tar.gz",
# "file:///Users/dae/Work/code/dtop/release.tar.gz",
# ],
# )
# sass # sass
############ ############