mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 08:54:21 -05:00
24 lines
654 B
Python
24 lines
654 B
Python
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||
|
load("//bazel/go:go_test.bzl", "go_test")
|
||
|
|
||
|
go_library(
|
||
|
name = "hash-generator_lib",
|
||
|
srcs = ["generate.go"],
|
||
|
importpath = "github.com/edgelesssys/constellation/v2/internal/versions/hash-generator",
|
||
|
visibility = ["//visibility:private"],
|
||
|
deps = ["@org_golang_x_tools//go/ast/astutil"],
|
||
|
)
|
||
|
|
||
|
go_binary(
|
||
|
name = "hash-generator",
|
||
|
embed = [":hash-generator_lib"],
|
||
|
visibility = ["//:__subpackages__"],
|
||
|
)
|
||
|
|
||
|
go_test(
|
||
|
name = "hash-generator_test",
|
||
|
srcs = ["generate_test.go"],
|
||
|
embed = [":hash-generator_lib"],
|
||
|
deps = ["@org_uber_go_goleak//:goleak"],
|
||
|
)
|