-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathmirrors.bzl
59 lines (58 loc) · 2.69 KB
/
mirrors.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- mode: python -*-
# vi: set ft=python :
# This constant contains Drake's default lists of mirrors. It is keyed by the
# repository type using magic strings ("github", "bitbucket", etc.), and has
# values of type list-of-string; each string is a pattern for a mirror URL.
#
# When calling a Drake workspace rule that requires a mirror= argument, this
# constant is a reasonable default value.
#
# Each repository type has its own keyword string substitutions within its
# pattern string; these will vary from one repository type to another; consult
# the specific rules (e.g., github_archive()) for details.
#
# The first item in each list is the authoritative source (e.g., the upstream
# server), if there is one.
#
# For Drake's defaults, Packages are mirrored from upstream (GitHub, Bitbucket,
# PyPI, etc.) to CloudFront backed by an S3 bucket.
#
DEFAULT_MIRRORS = {
"bitbucket": [
"https://bitbucket.org/{repository}/get/{commit}.tar.gz",
"https://drake-mirror.csail.mit.edu/bitbucket/{repository}/{commit}.tar.gz", # noqa
"https://s3.amazonaws.com/drake-mirror/bitbucket/{repository}/{commit}.tar.gz", # noqa
],
"buildifier": [
"https://drake-mirror.csail.mit.edu/github/bazelbuild/buildtools/releases/{version}/{filename}", # noqa
"https://s3.amazonaws.com/drake-mirror/github/bazelbuild/buildtools/releases/{version}/{filename}", # noqa
"https://github.com/bazelbuild/buildtools/releases/download/{version}/{filename}", # noqa
],
"director": [
"https://drake-packages.csail.mit.edu/director/{archive}",
"https://s3.amazonaws.com/drake-packages/director/{archive}",
],
"github": [
"https://github.com/{repository}/archive/{commit}.tar.gz",
"https://drake-mirror.csail.mit.edu/github/{repository}/{commit}.tar.gz", # noqa
"https://s3.amazonaws.com/drake-mirror/github/{repository}/{commit}.tar.gz", # noqa
],
"maven": [
"https://jcenter.bintray.com/{fulljar}",
"https://repo1.maven.org/maven2/{fulljar}",
# N.B. ibiblio doesn't offer https.
"http://maven.ibiblio.org/maven2/{fulljar}",
],
"pypi": [
"https://files.pythonhosted.org/packages/source/{p}/{package}/{package}-{version}.tar.gz", # noqa
"https://drake-mirror.csail.mit.edu/pypi/{package}/{package}-{version}.tar.gz", # noqa
"https://s3.amazonaws.com/drake-mirror/pypi/{package}/{package}-{version}.tar.gz", # noqa
],
"pypi-general": [
"https://files.pythonhosted.org/packages/{hash_path}/{filename}", # noqa
],
"vtk": [
"https://drake-packages.csail.mit.edu/vtk/{archive}",
"https://s3.amazonaws.com/drake-packages/vtk/{archive}",
],
}