github.com/please-build/go-rules/tools/please_go@v0.0.0-20240319165128-ea27d6f5caba/generate/BUILD (about)

     1  subinclude("///go//build_defs:go")
     2  
     3  filegroup(
     4      name = "srcs",
     5      srcs = glob(["*.go"], exclude=["*_test.go"]),
     6      visibility = ["//tools/please_go:bootstrap"],
     7  )
     8  
     9  go_library(
    10      name = "generate",
    11      srcs = [":srcs"],
    12      visibility = ["//tools/..."],
    13      deps = [
    14          "//third_party/go:buildtools",
    15          "//tools/please_go/generate/gomoddeps",
    16      ],
    17  )
    18  
    19  go_test(
    20      name = "generate_test",
    21      srcs = glob(["*_test.go"]),
    22      deps = [
    23          "//third_party/go:testify",
    24          ":generate",
    25      ],
    26  )