File tree Expand file tree Collapse file tree 3 files changed +25
-8
lines changed Expand file tree Collapse file tree 3 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,20 @@ cc_library(
188188# Linting
189189
190190filegroup (
191- name = "LintInputs " ,
191+ name = "SourceFiles " ,
192192 srcs = glob ([
193- "Plugins/**/*.swift" ,
194193 "Source/**/*.swift" ,
195- ]) + [
194+ ]),
195+ visibility = ["//Tests:__subpackages__" ],
196+ )
197+
198+ filegroup (
199+ name = "LintInputs" ,
200+ srcs = glob (
201+ ["Plugins/**/*.swift" ],
202+ allow_empty = True
203+ ) + [
204+ ":SourceFiles" ,
196205 ".swiftlint.yml" ,
197206 "Package.swift" ,
198207 "//Tests:TestSources" ,
@@ -205,13 +214,13 @@ filegroup(
205214filegroup (
206215 name = "release_files" ,
207216 srcs = [
217+ ":SourceFiles" ,
208218 "BUILD" ,
209219 "LICENSE" ,
210220 "MODULE.bazel" ,
211221 "//:DyldWarningWorkaroundSources" ,
212- "//:LintInputs" ,
213- "//Tests/ExtraRulesTests:BUILD" ,
214- "//Tests/TestHelpers:BUILD" ,
222+ "//Tests/ExtraRulesTests:TestSources" ,
223+ "//Tests/TestHelpers:TestSources" ,
215224 "//bazel:release_files" ,
216225 ],
217226)
Original file line number Diff line number Diff line change 11load ("@build_bazel_rules_swift//swift:swift.bzl" , "swift_library" , "swift_test" )
22load ("//bazel:copts.bzl" , "STRICT_COPTS" )
33
4- exports_files (["BUILD" ])
4+ filegroup (
5+ name = "TestSources" ,
6+ srcs = ["BUILD" , "ExtraRulesTests.swift" ],
7+ visibility = ["//visibility:public" ],
8+ )
59
610genrule (
711 name = "ExtraRulesLinuxMain" ,
Original file line number Diff line number Diff line change 11load ("@build_bazel_rules_swift//swift:swift.bzl" , "swift_library" )
22load ("//bazel:copts.bzl" , "STRICT_COPTS" )
33
4- exports_files (["BUILD" ])
4+ filegroup (
5+ name = "TestSources" ,
6+ srcs = ["BUILD" ] + glob (["*.swift" ]),
7+ visibility = ["//visibility:public" ],
8+ )
59
610swift_library (
711 name = "TestHelpers" ,
You can’t perform that action at this time.
0 commit comments