mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
827c4f548d
bazel-deps-mirror is an internal tools used to upload external dependencies that are referenced in the Bazel WORKSPACE to the Edgeless Systems' mirror. It also normalizes deps rules. * hack: add tool to mirror Bazel dependencies * hack: bazel-deps-mirror tests * bazel: add deps mirror commands * ci: upload Bazel dependencies on renovate PRs * update go mod * run deps_mirror_upload Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
29 lines
853 B
Python
29 lines
853 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
go_library(
|
|
name = "bazel-deps-mirror_lib",
|
|
srcs = [
|
|
"bazel-deps-mirror.go",
|
|
"check.go",
|
|
"fix.go",
|
|
],
|
|
importpath = "github.com/edgelesssys/constellation/v2/hack/bazel-deps-mirror",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//hack/bazel-deps-mirror/internal/bazelfiles",
|
|
"//hack/bazel-deps-mirror/internal/issues",
|
|
"//hack/bazel-deps-mirror/internal/mirror",
|
|
"//hack/bazel-deps-mirror/internal/rules",
|
|
"//internal/logger",
|
|
"@com_github_bazelbuild_buildtools//build",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@org_uber_go_zap//zapcore",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "bazel-deps-mirror",
|
|
embed = [":bazel-deps-mirror_lib"],
|
|
visibility = ["//visibility:public"],
|
|
)
|