mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
bdba9d8ba6
* build: correct toolchain order * build: gazelle-update-repos * build: use pregenerated proto for dependencies * update bazeldnf * deps: tpm simulator * Update Google trillian module * cli: add stamping as alternative build info source * bazel: add go_test wrappers, mark special tests and select testing deps * deps: add libvirt deps * deps: go-libvirt patches * deps: cloudflare circl patches * bazel: add go_test wrappers, mark special tests and select testing deps * bazel: keep gazelle overrides * bazel: cleanup bazelrc * bazel: switch CMakeLists.txt to use bazel * bazel: fix injection of version information via stamping * bazel: commit all build files * dev-docs: document bazel usage * deps: upgrade zig-cc for go 1.20 * bazel: update Perl for macOS arm64 & Linux arm64 support * bazel: use static perl toolchain for OpenSSL * bazel: use static protobuf (protoc) toolchain * deps: add git and go to nix deps Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
142 lines
4.3 KiB
Python
142 lines
4.3 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "cmd",
|
|
srcs = [
|
|
"cloud.go",
|
|
"cmd.go",
|
|
"config.go",
|
|
"configfetchmeasurements.go",
|
|
"configgenerate.go",
|
|
"configinstancetypes.go",
|
|
"configkubernetesversions.go",
|
|
"create.go",
|
|
"iamcreate.go",
|
|
"iamdestroy.go",
|
|
"init.go",
|
|
"log.go",
|
|
"mini.go",
|
|
"minidown.go",
|
|
"miniup.go",
|
|
"recover.go",
|
|
"spinner.go",
|
|
"terminate.go",
|
|
"upgrade.go",
|
|
"upgradeapply.go",
|
|
"upgradecheck.go",
|
|
"userinteraction.go",
|
|
"validargs.go",
|
|
"verifier.go",
|
|
"verify.go",
|
|
"version.go",
|
|
],
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/cmd",
|
|
visibility = ["//cli:__subpackages__"],
|
|
deps = [
|
|
"//bootstrapper/initproto",
|
|
"//cli/internal/cloudcmd",
|
|
"//cli/internal/clusterid",
|
|
"//cli/internal/helm",
|
|
"//cli/internal/iamid",
|
|
"//cli/internal/libvirt",
|
|
"//cli/internal/terraform",
|
|
"//disk-mapper/recoverproto",
|
|
"//internal/atls",
|
|
"//internal/attestation/measurements",
|
|
"//internal/cloud/azureshared",
|
|
"//internal/cloud/cloudprovider",
|
|
"//internal/cloud/gcpshared",
|
|
"//internal/compatibility",
|
|
"//internal/config",
|
|
"//internal/config/instancetypes",
|
|
"//internal/constants",
|
|
"//internal/crypto",
|
|
"//internal/file",
|
|
"//internal/grpc/dialer",
|
|
"//internal/grpc/retry",
|
|
"//internal/kms/uri",
|
|
"//internal/kubernetes/kubectl",
|
|
"//internal/license",
|
|
"//internal/logger",
|
|
"//internal/retry",
|
|
"//internal/sigstore",
|
|
"//internal/versions",
|
|
"//internal/versionsapi",
|
|
"//internal/versionsapi/fetcher",
|
|
"//verify/verifyproto",
|
|
"@com_github_mattn_go_isatty//:go-isatty",
|
|
"@com_github_siderolabs_talos_pkg_machinery//config/encoder",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@io_k8s_apimachinery//pkg/runtime",
|
|
"@io_k8s_client_go//tools/clientcmd",
|
|
"@io_k8s_client_go//tools/clientcmd/api/latest",
|
|
"@io_k8s_sigs_yaml//:yaml",
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
"@org_golang_google_grpc//connectivity",
|
|
"@org_golang_x_mod//semver",
|
|
"@org_golang_x_sys//unix",
|
|
"@org_uber_go_zap//zapcore",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "cmd_test",
|
|
srcs = [
|
|
"cloud_test.go",
|
|
"configfetchmeasurements_test.go",
|
|
"configgenerate_test.go",
|
|
"create_test.go",
|
|
"iamcreate_test.go",
|
|
"iamdestroy_test.go",
|
|
"init_test.go",
|
|
"recover_test.go",
|
|
"spinner_test.go",
|
|
"terminate_test.go",
|
|
"upgradeapply_test.go",
|
|
"upgradecheck_test.go",
|
|
"userinteraction_test.go",
|
|
"validargs_test.go",
|
|
"verifier_test.go",
|
|
"verify_test.go",
|
|
"version_test.go",
|
|
],
|
|
embed = [":cmd"],
|
|
deps = [
|
|
"//bootstrapper/initproto",
|
|
"//cli/internal/cloudcmd",
|
|
"//cli/internal/clusterid",
|
|
"//cli/internal/iamid",
|
|
"//disk-mapper/recoverproto",
|
|
"//internal/atls",
|
|
"//internal/attestation/measurements",
|
|
"//internal/cloud/cloudprovider",
|
|
"//internal/cloud/gcpshared",
|
|
"//internal/config",
|
|
"//internal/constants",
|
|
"//internal/crypto/testvector",
|
|
"//internal/file",
|
|
"//internal/grpc/atlscredentials",
|
|
"//internal/grpc/dialer",
|
|
"//internal/grpc/testdialer",
|
|
"//internal/kms/uri",
|
|
"//internal/license",
|
|
"//internal/logger",
|
|
"//internal/oid",
|
|
"//internal/versions",
|
|
"//internal/versionsapi",
|
|
"//verify/verifyproto",
|
|
"@com_github_spf13_afero//:afero",
|
|
"@com_github_spf13_cobra//:cobra",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@in_gopkg_yaml_v3//:yaml_v3",
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
"@org_golang_google_grpc//codes",
|
|
"@org_golang_google_grpc//status",
|
|
"@org_golang_x_mod//semver",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|