github.com/please-build/go-rules/tools/please_go@v0.0.0-20240319165128-ea27d6f5caba/generate/gomoddeps/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 = "gomoddeps",
    11      srcs = [
    12          ":srcs",
    13      ],
    14      visibility = ["//tools/please_go/generate/..."],
    15      deps = [
    16          "//third_party/go:mod",
    17      ],
    18  )
    19  
    20  go_test(
    21      name = "gomoddeps_test",
    22      srcs = glob(["*_test.go"]),
    23      data = [
    24          "//tools/please_go/generate/gomoddeps/test_data:test_go_mod_files",
    25      ],
    26      deps = [
    27          "//third_party/go:testify",
    28          ":gomoddeps",
    29      ],
    30  )