File tree Expand file tree Collapse file tree 4 files changed +21
-6
lines changed
testdata/remove_invalid_binary Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,7 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes
111
111
hasConftestFile := false
112
112
113
113
testFileGlobs := cfg .TestFilePattern ()
114
- filteredFiles := make (map [string ]struct {})
115
- for _ , f := range args .RegularFiles {
116
- filteredFiles [f ] = struct {}{}
117
- }
114
+
118
115
for _ , f := range args .RegularFiles {
119
116
if cfg .IgnoresFile (filepath .Base (f )) {
120
117
continue
Original file line number Diff line number Diff line change
1
+ load("@rules_python//python:defs.bzl", "py_library")
2
+
3
+ py_library(
4
+ name = "keep_library",
5
+ deps = ["//keep_binary:foo"],
6
+ )
Original file line number Diff line number Diff line change 1
- load("@rules_python//python:defs.bzl", "py_binary")
1
+ load("@rules_python//python:defs.bzl", "py_binary", "py_library" )
2
2
3
3
py_binary(
4
4
name = "foo",
5
5
srcs = ["foo.py"],
6
6
visibility = ["//:__subpackages__"],
7
7
)
8
+
9
+ py_library(
10
+ name = "keep_binary",
11
+ srcs = ["foo.py"],
12
+ visibility = ["//:__subpackages__"],
13
+ )
Original file line number Diff line number Diff line change 1
- load("@rules_python//python:defs.bzl", "py_binary")
1
+ load("@rules_python//python:defs.bzl", "py_binary", "py_library" )
2
2
3
3
py_binary(
4
4
name = "foo",
5
5
srcs = ["foo.py"],
6
6
visibility = ["//:__subpackages__"],
7
7
)
8
+
9
+ py_library(
10
+ name = "keep_binary",
11
+ srcs = ["foo.py"],
12
+ visibility = ["//:__subpackages__"],
13
+ )
You can’t perform that action at this time.
0 commit comments