mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 09:24:24 -05: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>
31 lines
994 B
Python
31 lines
994 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "bazelfiles",
|
|
srcs = ["files.go"],
|
|
importpath = "github.com/edgelesssys/constellation/v2/hack/bazel-deps-mirror/internal/bazelfiles",
|
|
visibility = ["//hack/bazel-deps-mirror:__subpackages__"],
|
|
deps = [
|
|
"@com_github_bazelbuild_buildtools//build",
|
|
"@com_github_hexops_gotextdiff//:gotextdiff",
|
|
"@com_github_hexops_gotextdiff//myers",
|
|
"@com_github_hexops_gotextdiff//span",
|
|
"@com_github_spf13_afero//:afero",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "bazelfiles_test",
|
|
srcs = ["files_test.go"],
|
|
embed = [":bazelfiles"],
|
|
deps = [
|
|
"@com_github_bazelbuild_buildtools//build",
|
|
"@com_github_bazelbuild_buildtools//edit",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|