forked from theoremlp/rules_multitool
/
lockfile.schema.json
41 lines (41 loc) · 1.37 KB
/
lockfile.schema.json
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
{
"$id": "https://github.com/theoremlp/rules_multitool/lockfile.schema.json",
"title": "Describes binaries and instructions for fetching them under Bazel",
"type": "object",
"properties": {
"$schema": { "type": "string" }
},
"additionalProperties": {
"type": "object",
"properties": {
"binaries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"enum": ["file", "archive", "pkg"]
},
"url": {
"type": "string"
},
"file": {
"type": "string",
"description": "when kind is archive or pkg, relative path to the binary within it"
},
"sha256": {
"type": "string"
},
"os": {
"enum": ["macos", "linux"]
},
"cpu": {
"enum": ["x86_64", "arm64"]
}
},
"additionalProperties": false
}
}
}
}
}