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 = "license",
|
|
|
|
srcs = [
|
|
|
|
# keep
|
|
|
|
"checker_enterprise.go",
|
|
|
|
# keep
|
|
|
|
"checker_oss.go",
|
|
|
|
"file.go",
|
|
|
|
"license.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/license",
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//internal/cloud/cloudprovider",
|
|
|
|
# keep
|
|
|
|
"//internal/constants",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "license_test",
|
2023-12-22 04:16:36 -05:00
|
|
|
srcs = ["file_test.go"],
|
2023-03-09 09:23:42 -05:00
|
|
|
embed = [":license"],
|
2023-12-22 04:16:36 -05:00
|
|
|
tags = [
|
|
|
|
"enterprise",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
deps = [
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
],
|
|
|
|
)
|