...

Text file src/github.com/bazelbuild/rules_go/go/tools/gopackagesdriver/BUILD.bazel

Documentation: github.com/bazelbuild/rules_go/go/tools/gopackagesdriver

     1load("//go:def.bzl", "go_binary", "go_library")
     2load("//go/private:common.bzl", "RULES_GO_REPO_NAME")
     3
     4go_library(
     5    name = "gopackagesdriver_lib",
     6    srcs = [
     7        "bazel.go",
     8        "bazel_json_builder.go",
     9        "build_context.go",
    10        "driver_request.go",
    11        "flatpackage.go",
    12        "json_packages_driver.go",
    13        "main.go",
    14        "packageregistry.go",
    15        "utils.go",
    16    ],
    17    importpath = "github.com/bazelbuild/rules_go/go/tools/gopackagesdriver",
    18    visibility = [
    19        "//tests/integration/gopackagesdriver:__pkg__",
    20    ],
    21)
    22
    23go_binary(
    24    name = "gopackagesdriver",
    25    embed = [":gopackagesdriver_lib"],
    26    visibility = ["//visibility:public"],
    27    x_defs = {
    28        # Determine the repository part of labels pointing into the rules_go repo. This is needed
    29        # both to specify the aspect and to match labels in query output.
    30        "rulesGoRepositoryName": RULES_GO_REPO_NAME,
    31    },
    32)
    33
    34filegroup(
    35    name = "all_files",
    36    testonly = True,
    37    srcs = glob(["**"]),
    38    visibility = ["//visibility:public"],
    39)

View as plain text