load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")

go_library(
    name = "maa",
    srcs = [
        "maa.go",
        "patch.go",
    ],
    importpath = "github.com/edgelesssys/constellation/v2/internal/maa",
    visibility = ["//:__subpackages__"],
    deps = [
        "@com_github_azure_azure_sdk_for_go//profiles/latest/attestation/attestation",
        "@com_github_azure_azure_sdk_for_go_sdk_azcore//policy",
        "@com_github_azure_azure_sdk_for_go_sdk_azidentity//:azidentity",
    ],
)

go_test(
    name = "maa_test",
    srcs = ["patch_test.go"],
    embed = [":maa"],
    deps = ["@com_github_stretchr_testify//assert"],
)
