mirror of
https://github.com/edgelesssys/constellation.git
synced 2026-01-10 20:21:09 -05:00
40 lines
953 B
Text
40 lines
953 B
Text
load("@bazel_gazelle//:def.bzl", "gazelle")
|
|
|
|
# load("@bazeldnf//:def.bzl", "bazeldnf")
|
|
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier", "buildifier_test")
|
|
|
|
# gazelle:prefix github.com/edgelesssys/constellation/v2
|
|
gazelle(name = "gazelle")
|
|
|
|
gazelle(
|
|
name = "gazelle-update-repos",
|
|
args = [
|
|
"-from_file=go.work",
|
|
"-to_macro=toolchains/go_module_deps.bzl%go_dependencies",
|
|
"-build_file_proto_mode=disable_global",
|
|
"-build_file_generation=on",
|
|
"-prune",
|
|
],
|
|
command = "update-repos",
|
|
)
|
|
|
|
# bazeldnf(name = "bazeldnf")
|
|
|
|
buildifier_test(
|
|
name = "buildifier-check",
|
|
timeout = "short",
|
|
lint_mode = "warn",
|
|
lint_warnings = ["all"],
|
|
mode = "diff",
|
|
no_sandbox = True,
|
|
verbose = True,
|
|
workspace = "WORKSPACE.bazel",
|
|
)
|
|
|
|
buildifier(
|
|
name = "buildifier-fix",
|
|
lint_mode = "fix",
|
|
lint_warnings = ["all"],
|
|
mode = "fix",
|
|
verbose = True,
|
|
)
|