-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBUILD.bazel
56 lines (48 loc) · 1.32 KB
/
BUILD.bazel
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
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
load("@gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
load("//oci:toolchain.bzl", "oci_local_toolchain")
# gazelle:prefix github.com/DataDog/rules_oci
# gazelle:go_naming_convention go_default_library
# gazelle:lang go
oci_local_toolchain(
name = "oci_local_toolchain",
)
buildifier(
name = "buildifier",
exclude_patterns = ["./.git/*"],
lint_mode = "warn",
mode = "fix",
)
buildifier_test(
name = "buildifier_test",
exclude_patterns = ["./.git/*"],
lint_mode = "warn",
no_sandbox = True,
workspace = "//:WORKSPACE",
)
gazelle(
name = "gazelle",
gazelle = ":default_gazelle_binary",
)
gazelle_binary(
name = "default_gazelle_binary",
languages = DEFAULT_LANGUAGES + [
"@bazel_skylib_gazelle_plugin//bzl",
],
)
alias(
name = "go",
actual = "@rules_go//go",
)
write_source_files(
name = "bootstrap",
diff_test = False,
executable = True,
files = {
"bin/ocitool-darwin-amd64": "//go/cmd/ocitool",
"bin/ocitool-darwin-arm64": "//go/cmd/ocitool",
"bin/ocitool-linux-amd64": "//go/cmd/ocitool",
"bin/ocitool-linux-arm64": "//go/cmd/ocitool",
},
)