github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/internal/version/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "version", 5 srcs = ["version.go"], 6 importpath = "github.com/bazelbuild/bazel-gazelle/internal/version", 7 visibility = ["//:__subpackages__"], 8 ) 9 10 go_test( 11 name = "version_test", 12 srcs = ["version_test.go"], 13 embed = [":version"], 14 ) 15 16 filegroup( 17 name = "all_files", 18 testonly = True, 19 srcs = [ 20 "BUILD.bazel", 21 "version.go", 22 "version_test.go", 23 ], 24 visibility = ["//visibility:public"], 25 ) 26 27 alias( 28 name = "go_default_library", 29 actual = ":version", 30 visibility = ["//:__subpackages__"], 31 )