github.com/0xKiwi/rules_go@v0.24.3/tests/examples/executable_name/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test", "go_source") 2 3 go_binary( 4 name = "some_binary", 5 srcs = ["main.go"], 6 ) 7 8 genrule( 9 name = "normalised_binary", 10 srcs = [":some_binary"], 11 outs = ["the_binary"], 12 cmd = "cp $(SRCS) $@", 13 ) 14 15 sh_test( 16 name = "executable_name", 17 size = "small", 18 srcs = ["name_test.sh"], 19 data = [ ":normalised_binary" ], 20 )