blob: c597aa855ec85411f77790c127e0e6f022188965 [file]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test", "go_source")
go_binary(
name = "some_binary",
srcs = ["main.go"],
)
genrule(
name = "normalised_binary",
srcs = [":some_binary"],
outs = ["the_binary"],
cmd = "cp $(SRCS) $@",
)
sh_test(
name = "executable_name",
size = "small",
srcs = ["name_test.sh"],
data = [ ":normalised_binary" ],
)