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
111111 hasConftestFile := false
112112
113113 testFileGlobs := cfg .TestFilePattern ()
114- filteredFiles := make (map [string ]struct {})
115- for _ , f := range args .RegularFiles {
116- filteredFiles [f ] = struct {}{}
117- }
114+
118115 for _ , f := range args .RegularFiles {
119116 if cfg .IgnoresFile (filepath .Base (f )) {
120117 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" )
22
33py_binary(
44 name = "foo",
55 srcs = ["foo.py"],
66 visibility = ["//:__subpackages__"],
77)
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" )
22
33py_binary(
44 name = "foo",
55 srcs = ["foo.py"],
66 visibility = ["//:__subpackages__"],
77)
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