pulumi/pkg/codegen/go/BUILD.bazel

91 lines
2.6 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go",
srcs = [
"doc.go",
"gen.go",
"gen_program.go",
"gen_program_expressions.go",
"gen_program_inline_invoke.go",
"gen_program_json.go",
"gen_program_optionals.go",
"gen_program_read_dir.go",
"gen_program_splat.go",
"gen_program_ternaries.go",
"gen_program_utils.go",
"gen_spill.go",
"importer.go",
"test.go",
"utilities.go",
],
embedsrcs = ["embeddedUtilities.go"],
importpath = "github.com/pulumi/pulumi/pkg/v3/codegen/go",
visibility = ["//visibility:public"],
deps = [
"//pkg/codegen",
"//pkg/codegen/cgstrings",
"//pkg/codegen/hcl2/model",
"//pkg/codegen/hcl2/model/format",
"//pkg/codegen/hcl2/syntax",
"//pkg/codegen/pcl",
"//pkg/codegen/schema",
"//pkg/codegen/testing/test",
"//pkg/testing/integration",
"//sdk/go/common/diag",
"//sdk/go/common/encoding",
"//sdk/go/common/resource/plugin",
"//sdk/go/common/slice",
"//sdk/go/common/util/cmdutil",
"//sdk/go/common/util/contract",
"//sdk/go/common/util/executable",
"//sdk/go/common/workspace",
"@com_github_golang_glog//:glog",
"@com_github_hashicorp_hcl_v2//:hcl",
"@com_github_hashicorp_hcl_v2//hclsyntax",
"@com_github_iancoleman_strcase//:strcase",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@com_github_zclconf_go_cty//cty",
],
)
alias(
name = "go_default_library",
actual = ":go",
visibility = ["//visibility:public"],
)
go_test(
name = "go_test",
srcs = [
"doc_test.go",
"gen_program_expression_test.go",
"gen_program_test.go",
"gen_test.go",
"utilities_test.go",
],
data = [
"//pkg/codegen/testing/test:codegen_testdata",
"//sdk:sdk_files",
],
embed = [":go"],
deps = [
"//pkg/codegen",
"//pkg/codegen/hcl2/model",
"//pkg/codegen/hcl2/model/format",
"//pkg/codegen/hcl2/syntax",
"//pkg/codegen/pcl",
"//pkg/codegen/schema",
"//pkg/codegen/testing/test",
"//pkg/codegen/testing/utils",
"//sdk/go/common/slice",
"//sdk/go/common/util/executable",
"//sdk/go/common/workspace",
"@com_github_hashicorp_hcl_v2//:hcl",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@in_gopkg_yaml_v3//:yaml_v3",
],
)