github.com/bazelbuild/rules_go@v0.47.2-0.20240515105122-e7ddb9ea474e/third_party/org_golang_x_tools_go_vcs-gazelle.patch (about)

     1  diff -urN a/BUILD.bazel b/BUILD.bazel
     2  --- a/BUILD.bazel	1970-01-01 01:00:00.000000000 +0100
     3  +++ b/BUILD.bazel	2023-08-12 19:21:03.606016940 +0200
     4  @@ -0,0 +1,26 @@
     5  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     6  +
     7  +go_library(
     8  +    name = "vcs",
     9  +    srcs = [
    10  +        "discovery.go",
    11  +        "env.go",
    12  +        "http.go",
    13  +        "vcs.go",
    14  +    ],
    15  +    importpath = "golang.org/x/tools/go/vcs",
    16  +    visibility = ["//visibility:public"],
    17  +    deps = ["@org_golang_x_sys//execabs:go_default_library"],
    18  +)
    19  +
    20  +alias(
    21  +    name = "go_default_library",
    22  +    actual = ":vcs",
    23  +    visibility = ["//visibility:public"],
    24  +)
    25  +
    26  +go_test(
    27  +    name = "vcs_test",
    28  +    srcs = ["vcs_test.go"],
    29  +    embed = [":vcs"],
    30  +)