2023-03-09 15:23:42 +01:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "terraform",
|
|
|
|
srcs = [
|
|
|
|
"loader.go",
|
2023-04-14 14:15:07 +02:00
|
|
|
"logging.go",
|
2023-03-09 15:23:42 +01:00
|
|
|
"terraform.go",
|
|
|
|
"variables.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/terraform",
|
2023-11-22 14:52:56 +01:00
|
|
|
visibility = ["//:__subpackages__"],
|
2023-03-09 15:23:42 +01:00
|
|
|
deps = [
|
|
|
|
"//internal/cloud/cloudprovider",
|
2023-04-14 14:15:07 +02:00
|
|
|
"//internal/constants",
|
2023-12-08 16:27:04 +01:00
|
|
|
"//internal/constellation/state",
|
2023-03-09 15:23:42 +01:00
|
|
|
"//internal/file",
|
2023-11-08 19:10:01 +01:00
|
|
|
"//terraform",
|
2023-03-09 15:23:42 +01:00
|
|
|
"@com_github_hashicorp_go_version//:go-version",
|
|
|
|
"@com_github_hashicorp_hc_install//:hc-install",
|
|
|
|
"@com_github_hashicorp_hc_install//fs",
|
|
|
|
"@com_github_hashicorp_hc_install//product",
|
|
|
|
"@com_github_hashicorp_hc_install//releases",
|
|
|
|
"@com_github_hashicorp_hc_install//src",
|
2023-08-23 10:35:42 +02:00
|
|
|
"@com_github_hashicorp_hcl_v2//:hcl",
|
2023-06-19 13:02:01 +02:00
|
|
|
"@com_github_hashicorp_hcl_v2//gohcl",
|
2023-08-23 10:35:42 +02:00
|
|
|
"@com_github_hashicorp_hcl_v2//hclsyntax",
|
2023-06-19 13:02:01 +02:00
|
|
|
"@com_github_hashicorp_hcl_v2//hclwrite",
|
2023-03-09 15:23:42 +01:00
|
|
|
"@com_github_hashicorp_terraform_exec//tfexec",
|
|
|
|
"@com_github_hashicorp_terraform_json//:terraform-json",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "terraform_test",
|
|
|
|
srcs = [
|
|
|
|
"loader_test.go",
|
|
|
|
"terraform_test.go",
|
2023-06-19 13:02:01 +02:00
|
|
|
"variables_test.go",
|
2023-03-09 15:23:42 +01:00
|
|
|
],
|
|
|
|
embed = [":terraform"],
|
|
|
|
deps = [
|
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/constants",
|
2024-01-24 15:10:15 +01:00
|
|
|
"//internal/encoding",
|
2023-03-09 15:23:42 +01:00
|
|
|
"//internal/file",
|
2023-06-28 14:42:34 +02:00
|
|
|
"//internal/role",
|
2023-06-22 16:53:40 +02:00
|
|
|
"@com_github_azure_azure_sdk_for_go_sdk_azcore//to",
|
2023-03-09 15:23:42 +01:00
|
|
|
"@com_github_hashicorp_terraform_exec//tfexec",
|
|
|
|
"@com_github_hashicorp_terraform_json//:terraform-json",
|
|
|
|
"@com_github_spf13_afero//:afero",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
2023-06-19 13:02:01 +02:00
|
|
|
"@org_uber_go_goleak//:goleak",
|
2023-03-09 15:23:42 +01:00
|
|
|
],
|
|
|
|
)
|