2023-03-09 09:23:42 -05: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 08:15:07 -04:00
|
|
|
"logging.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
"terraform.go",
|
|
|
|
"variables.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/cli/internal/terraform",
|
2023-11-22 08:52:56 -05:00
|
|
|
visibility = ["//:__subpackages__"],
|
2023-03-09 09:23:42 -05:00
|
|
|
deps = [
|
|
|
|
"//internal/cloud/cloudprovider",
|
2023-04-14 08:15:07 -04:00
|
|
|
"//internal/constants",
|
2023-12-08 10:27:04 -05:00
|
|
|
"//internal/constellation/state",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/file",
|
2023-11-08 13:10:01 -05:00
|
|
|
"//terraform",
|
2023-03-09 09:23:42 -05: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 04:35:42 -04:00
|
|
|
"@com_github_hashicorp_hcl_v2//:hcl",
|
2023-06-19 07:02:01 -04:00
|
|
|
"@com_github_hashicorp_hcl_v2//gohcl",
|
2023-08-23 04:35:42 -04:00
|
|
|
"@com_github_hashicorp_hcl_v2//hclsyntax",
|
2023-06-19 07:02:01 -04:00
|
|
|
"@com_github_hashicorp_hcl_v2//hclwrite",
|
2023-03-09 09:23:42 -05: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 07:02:01 -04:00
|
|
|
"variables_test.go",
|
2023-03-09 09:23:42 -05:00
|
|
|
],
|
|
|
|
embed = [":terraform"],
|
|
|
|
deps = [
|
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
"//internal/constants",
|
2023-12-08 10:27:04 -05:00
|
|
|
"//internal/constellation/state",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/file",
|
2023-06-28 08:42:34 -04:00
|
|
|
"//internal/role",
|
2023-06-22 10:53:40 -04:00
|
|
|
"@com_github_azure_azure_sdk_for_go_sdk_azcore//to",
|
2023-03-09 09:23:42 -05: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 07:02:01 -04:00
|
|
|
"@org_uber_go_goleak//:goleak",
|
2023-03-09 09:23:42 -05:00
|
|
|
],
|
|
|
|
)
|