This repository has been archived by the owner on Jan 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
deps.bzl
147 lines (126 loc) · 4.53 KB
/
deps.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
"""
go-ssz dependencies.
Add go_repository dependencies where with the _maybe function so that downstream
bazel projects' go_repository take precidence over the commits specified here.
Add the license comment to each dependency for quick analysis of the licensing
requirements for this project.
"""
load("@bazel_gazelle//:deps.bzl", "go_repository")
def go_ssz_dependencies():
_maybe(
# Apache License 2.0
go_repository,
name = "com_github_prometheus_client_golang",
commit = "662e8a9ffaaa74a4d050023c2cb26902cd9bab63",
importpath = "github.com/prometheus/client_golang",
)
_maybe(
# Apache License 2.0
go_repository,
name = "com_github_prometheus_common",
commit = "1ba88736f028e37bc17328369e94a537ae9e0234",
importpath = "github.com/prometheus/common",
)
_maybe(
# Apache License 2.0
go_repository,
name = "com_github_prometheus_client_model",
commit = "fd36f4220a901265f90734c3183c5f0c91daa0b8",
importpath = "github.com/prometheus/client_model",
)
_maybe(
# Apache License 2.0
go_repository,
name = "com_github_prometheus_procfs",
commit = "bbced9601137e764853b2fad7ec3e2dc4c504e02",
importpath = "github.com/prometheus/procfs",
)
_maybe(
# Apache License 2.0
go_repository,
name = "com_github_matttproud_golang_protobuf_extensions",
commit = "c12348ce28de40eed0136aa2b644d0ee0650e56c",
importpath = "github.com/matttproud/golang_protobuf_extensions",
)
_maybe(
# MIT License
go_repository,
name = "com_github_beorn7_perks",
commit = "4ded152d4a3e2847f17f185a27b2041ae7b63979",
importpath = "github.com/beorn7/perks",
)
_maybe(
# GNU Lesser General Public License v3.0
go_repository,
name = "com_github_ethereum_go_ethereum",
commit = "099afb3fd89784f9e3e594b7c2ed11335ca02a9b",
importpath = "github.com/ethereum/go-ethereum",
# Note: go-ethereum is not bazel-friendly with regards to cgo. We have a
# a fork that has resolved these issues by disabling HID/USB support and
# some manual fixes for c imports in the crypto package. This is forked
# branch should be updated from time to time with the latest go-ethereum
# code.
remote = "https://github.com/prysmaticlabs/bazel-go-ethereum",
vcs = "git",
)
_maybe(
# Permissive license
# https://github.com/golang/crypto/blob/master/LICENSE
go_repository,
name = "org_golang_x_crypto",
commit = "8dd112bcdc25174059e45e07517d9fc663123347",
importpath = "golang.org/x/crypto",
)
_maybe(
# Apache License 2.0
# https://github.com/prysmaticlabs/go-bitfield/blob/master/LICENSE
go_repository,
name = "com_github_prysmaticlabs_go_bitfield",
commit = "ec88cc4d1d143cad98308da54b73d0cdb04254eb",
importpath = "github.com/prysmaticlabs/go-bitfield",
)
_maybe(
go_repository,
name = "com_github_minio_sha256_simd",
commit = "05b4dd3047e5d6e86cb4e0477164b850cd896261",
importpath = "github.com/minio/sha256-simd",
)
_maybe(
go_repository,
name = "com_github_protolambda_zssz",
commit = "632f11e5e281660402bd0ac58f76090f3503def0",
importpath = "github.com/protolambda/zssz",
)
_maybe(
go_repository,
name = "com_github_pkg_errors",
commit = "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7",
importpath = "github.com/pkg/errors",
)
_maybe(
go_repository,
name = "com_github_minio_highwayhash",
importpath = "github.com/minio/highwayhash",
commit = "02ca4b43caa3297fbb615700d8800acc7933be98",
)
_maybe(
go_repository,
name = "com_github_dgraph_io_ristretto",
importpath = "github.com/dgraph-io/ristretto",
commit = "99d1bbbf28e64530eb246be0568fc7709a35ebdd",
)
_maybe(
go_repository,
name = "com_github_cespare_xxhash",
commit = "d7df74196a9e781ede915320c11c378c1b2f3a1f",
importpath = "github.com/cespare/xxhash",
)
_maybe(
go_repository,
name = "com_github_ferranbt_fastssz",
commit = "99fccaf9347271d8daad22406ae2c718e3be01c9",
importpath = "github.com/ferranbt/fastssz",
)
def _maybe(repo_rule, name, **kwargs):
if name not in native.existing_rules():
repo_rule(name = name, **kwargs)