mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 07:59:37 -05:00
4d6a7fa759
* license: refactor license check to be agnostic of input * license: remove unused code * cli: only check license file in enterprise version Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * bazel: fix enterprise CLI build * bazel: add keep directive * Update internal/constellation/apply.go Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> * license: check for return value --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
35 lines
762 B
Python
35 lines
762 B
Python
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",
|
|
srcs = [
|
|
"file_test.go",
|
|
"license_test.go",
|
|
],
|
|
embed = [":license"],
|
|
deps = [
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|