File tree Expand file tree Collapse file tree 6 files changed +52
-12
lines changed Expand file tree Collapse file tree 6 files changed +52
-12
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ platforms:
94
94
- " -@go_googleapis//google/rpc:status_proto"
95
95
- " -@go_googleapis//google/type:color_go_proto"
96
96
- " -@gogo_special_proto//github.com/gogo/protobuf/gogoproto:gogoproto"
97
- - " -//go/tools/bazel:go_default_test "
97
+ - " -//go/tools/bazel:bazel_test "
98
98
- " -@io_bazel_rules_go//proto:gogofaster_proto"
99
99
- " -@io_bazel_rules_go//proto:go_grpc"
100
100
- " -@io_bazel_rules_go//proto:go_proto"
@@ -254,7 +254,7 @@ platforms:
254
254
test_targets :
255
255
- " --"
256
256
- " ..."
257
- - " -//go/tools/bazel:go_default_test "
257
+ - " -//go/tools/bazel:bazel_test "
258
258
- " -@org_golang_x_crypto//ed25519:go_default_test"
259
259
- " -@org_golang_x_crypto//sha3:go_default_test"
260
260
- " -@org_golang_x_net//ipv4:go_default_test"
Original file line number Diff line number Diff line change 26
26
"stdlib" ,
27
27
)
28
28
29
+ # gazelle:prefix github.com/bazelbuild/rules_go
30
+ # gazelle:exclude tests
31
+ # gazelle:exclude third_party
32
+ # gazelle:exclude go/tools/builders
33
+ # gazelle:exclude go/tools/coverdata
34
+ # gazelle:exclude go/tools/fetch_repo
35
+ # gazelle:exclude go/tools/windows-testrunner
36
+ # gazelle:exclude go/tools/testwrapper
37
+ # gazelle:go_naming_convention import_alias
38
+
39
+ # TODO(jayconrod): add a gazelle rule so gazelle can be run automatically.
40
+ # It can't go here though, because it would break anything that depends on
41
+ # rules_go but not Gazelle, including our own go_bazel_tests.
42
+
29
43
stdlib (
30
44
name = "stdlib" ,
31
45
cgo_context_data = select ({
Original file line number Diff line number Diff line change 1
1
load ("@io_bazel_rules_go//go:def.bzl" , "go_library" , "go_test" )
2
2
3
3
go_library (
4
- name = "go_default_library " ,
4
+ name = "bazel " ,
5
5
srcs = [
6
6
"bazel.go" ,
7
7
"runfiles.go" ,
@@ -11,11 +11,11 @@ go_library(
11
11
)
12
12
13
13
go_test (
14
- name = "go_default_test " ,
14
+ name = "bazel_test " ,
15
15
size = "small" ,
16
16
srcs = ["bazel_test.go" ],
17
17
data = ["empty.txt" ],
18
- embed = [":go_default_library " ],
18
+ embed = [":bazel " ],
19
19
)
20
20
21
21
# Runfiles functionality in this package is tested by //tests/core/runfiles.
@@ -26,3 +26,9 @@ filegroup(
26
26
srcs = glob (["**" ]),
27
27
visibility = ["//visibility:public" ],
28
28
)
29
+
30
+ alias (
31
+ name = "go_default_library" ,
32
+ actual = ":bazel" ,
33
+ visibility = ["//visibility:public" ],
34
+ )
Original file line number Diff line number Diff line change 1
- load ("@io_bazel_rules_go//go:def.bzl" , "go_binary" )
1
+ load ("@io_bazel_rules_go//go:def.bzl" , "go_binary" , "go_library" )
2
2
3
3
go_binary (
4
4
name = "bazel_benchmark" ,
5
+ embed = [":bazel_benchmark_lib" ],
6
+ visibility = ["//visibility:public" ],
7
+ )
8
+
9
+ go_library (
10
+ name = "bazel_benchmark_lib" ,
5
11
srcs = ["bazel_benchmark.go" ],
12
+ importpath = "github.com/bazelbuild/rules_go/go/tools/bazel_benchmark" ,
13
+ visibility = ["//visibility:private" ],
6
14
)
Original file line number Diff line number Diff line change 1
1
load ("@io_bazel_rules_go//go:def.bzl" , "go_library" )
2
2
3
3
go_library (
4
- name = "go_default_library " ,
4
+ name = "bazel_testing " ,
5
5
srcs = ["bazel_testing.go" ],
6
6
importpath = "github.com/bazelbuild/rules_go/go/tools/bazel_testing" ,
7
7
visibility = ["//visibility:public" ],
8
8
deps = [
9
- "//go/tools/bazel:go_default_library " ,
10
- "//go/tools/internal/txtar:go_default_library " ,
9
+ "//go/tools/bazel" ,
10
+ "//go/tools/internal/txtar" ,
11
11
],
12
12
)
13
13
@@ -17,3 +17,9 @@ filegroup(
17
17
srcs = glob (["**" ]),
18
18
visibility = ["//visibility:public" ],
19
19
)
20
+
21
+ alias (
22
+ name = "go_default_library" ,
23
+ actual = ":bazel_testing" ,
24
+ visibility = ["//visibility:public" ],
25
+ )
Original file line number Diff line number Diff line change 1
1
load ("@io_bazel_rules_go//go:def.bzl" , "go_library" , "go_test" )
2
2
3
3
go_library (
4
- name = "go_default_library " ,
4
+ name = "txtar " ,
5
5
srcs = ["archive.go" ],
6
6
importpath = "github.com/bazelbuild/rules_go/go/tools/internal/txtar" ,
7
7
visibility = ["//go/tools:__subpackages__" ],
8
8
)
9
9
10
10
go_test (
11
- name = "go_default_test " ,
11
+ name = "txtar_test " ,
12
12
srcs = ["archive_test.go" ],
13
- embed = [":go_default_library" ],
13
+ embed = [":txtar" ],
14
+ )
15
+
16
+ alias (
17
+ name = "go_default_library" ,
18
+ actual = ":txtar" ,
19
+ visibility = ["//go/tools:__subpackages__" ],
14
20
)
You can’t perform that action at this time.
0 commit comments