-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathcompile_policy.MODULE.bazel
More file actions
53 lines (48 loc) · 1.95 KB
/
Copy pathcompile_policy.MODULE.bazel
File metadata and controls
53 lines (48 loc) · 1.95 KB
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
# Policy compiler
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
VERSION = "0.1.16"
# Define URLs for each architecture. This is used for the Linux build only; Windows and Darwin are not supported yet.
# When we do those, we can make this parameterized.
http_archive(
name = "compile_policy_x86_64",
files = {
"BUILD.bazel": "//deps/compile_policy:overlay.BUILD.bazel",
# These should really be in the release tarball.
"LICENSE": "//deps/compile_policy:LICENSE",
"LICENSE-3rdparty.csv": "//deps/compile_policy:LICENSE-3rdparty.csv",
},
sha256 = "c87cf1c639de483634a85ce86c847b6de95f8b409be8ca5452bdc067fe0b9b0d",
urls = [
"https://github.com/DataDog/dd-policy-engine/releases/download/v{version}/dd-compile-policy-linux-amd64.tar.gz".format(
version = VERSION,
),
],
)
http_archive(
name = "compile_policy_arm64",
files = {
"BUILD.bazel": "//deps/compile_policy:overlay.BUILD.bazel",
"LICENSE": "//deps/compile_policy:LICENSE",
"LICENSE-3rdparty.csv": "//deps/compile_policy:LICENSE-3rdparty.csv",
},
sha256 = "92c34a776ee8d042d8fcd9604a7df08326b3de137bd8c75c35d60033597efeeb",
urls = [
"https://github.com/DataDog/dd-policy-engine/releases/download/v{version}/dd-compile-policy-linux-arm64.tar.gz".format(
version = VERSION,
),
],
)
http_archive(
name = "compile_policy_windows_x86_64",
files = {
"BUILD.bazel": "//deps/compile_policy:overlay.BUILD.bazel",
"LICENSE": "//deps/compile_policy:LICENSE",
"LICENSE-3rdparty.csv": "//deps/compile_policy:LICENSE-3rdparty.csv",
},
sha256 = "cec996ab34bfa20e4a3244a6009d70bb905ba3fc54a22b71a835a10dd6716c11",
urls = [
"https://github.com/DataDog/dd-policy-engine/releases/download/v{version}/dd-compile-policy-windows-x64.zip".format(
version = VERSION,
),
],
)