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>
26 lines
725 B
Python
26 lines
725 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "rules",
|
|
srcs = ["rules.go"],
|
|
importpath = "github.com/edgelesssys/constellation/v2/hack/bazel-deps-mirror/internal/rules",
|
|
visibility = ["//hack/bazel-deps-mirror:__subpackages__"],
|
|
deps = [
|
|
"@com_github_bazelbuild_buildtools//build",
|
|
"@org_golang_x_exp//slices",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "rules_test",
|
|
srcs = ["rules_test.go"],
|
|
embed = [":rules"],
|
|
deps = [
|
|
"@com_github_bazelbuild_buildtools//build",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|