...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "repo",
5 srcs = [
6 "remote.go",
7 "repo.go",
8 ],
9 importpath = "github.com/bazelbuild/bazel-gazelle/repo",
10 visibility = ["//visibility:public"],
11 deps = [
12 "//label",
13 "//pathtools",
14 "//rule",
15 "@org_golang_x_mod//modfile",
16 "@org_golang_x_tools_go_vcs//:vcs",
17 ],
18)
19
20go_test(
21 name = "repo_test",
22 srcs = [
23 "remote_test.go",
24 "repo_test.go",
25 "stubs_test.go",
26 ],
27 embed = [":repo"],
28 deps = [
29 "//pathtools",
30 "//rule",
31 "//testtools",
32 "@org_golang_x_tools_go_vcs//:vcs",
33 ],
34)
35
36filegroup(
37 name = "all_files",
38 testonly = True,
39 srcs = [
40 "BUILD.bazel",
41 "remote.go",
42 "remote_test.go",
43 "repo.go",
44 "repo_test.go",
45 "stubs_test.go",
46 ],
47 visibility = ["//visibility:public"],
48)
49
50alias(
51 name = "go_default_library",
52 actual = ":repo",
53 visibility = ["//visibility:public"],
54)
View as plain text