2023-01-30 11:15:59 -05:00
|
|
|
load("@bazel_gazelle//:def.bzl", "gazelle")
|
|
|
|
load("@bazeldnf//:def.bzl", "bazeldnf")
|
2023-01-31 07:13:54 -05:00
|
|
|
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier", "buildifier_test")
|
2023-01-30 11:15:59 -05:00
|
|
|
|
|
|
|
# gazelle:prefix github.com/edgelesssys/constellation
|
|
|
|
gazelle(name = "gazelle")
|
|
|
|
|
|
|
|
gazelle(
|
|
|
|
name = "gazelle-update-repos",
|
|
|
|
args = [
|
|
|
|
"-from_file=go.work",
|
|
|
|
"-to_macro=toolchains/go_module_deps.bzl%go_dependencies",
|
|
|
|
"-prune",
|
|
|
|
],
|
|
|
|
command = "update-repos",
|
|
|
|
)
|
|
|
|
|
|
|
|
bazeldnf(name = "bazeldnf")
|
|
|
|
|
2023-01-31 07:13:54 -05:00
|
|
|
buildifier_test(
|
2023-01-30 11:15:59 -05:00
|
|
|
name = "buildifier-check",
|
|
|
|
lint_mode = "warn",
|
|
|
|
lint_warnings = ["all"],
|
2023-01-31 07:13:54 -05:00
|
|
|
mode = "diff",
|
|
|
|
no_sandbox = True,
|
2023-01-30 11:15:59 -05:00
|
|
|
verbose = True,
|
2023-01-31 07:13:54 -05:00
|
|
|
workspace = "WORKSPACE.bazel",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
buildifier(
|
|
|
|
name = "buildifier-fix",
|
|
|
|
lint_mode = "fix",
|
|
|
|
lint_warnings = ["all"],
|
|
|
|
mode = "fix",
|
|
|
|
verbose = True,
|
|
|
|
)
|