Skip to content

Commit

Permalink
Allow BuiltInRulesTests data to be empty so a workspace can load the …
Browse files Browse the repository at this point in the history
…Tests package from a release archive
  • Loading branch information
jszumski committed Jan 21, 2025
1 parent c3e6bbb commit 7d4e570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

### Bug Fixes

* None.
* Fix issue referencing the Tests package from another Bazel workspace.
[jszumski](https://github.com/jszumski)
[#5977](https://github.com/realm/SwiftLint/issues/5977)

## 0.58.2: New Year’s Fresh Fold

Expand Down
1 change: 1 addition & 0 deletions Tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ swift_test(
name = "BuiltInRulesTests",
data = glob(
["BuiltInRulesTests/Resources/**"],
allow_empty = True,
# Bazel doesn't support paths with spaces in them
exclude = ["BuiltInRulesTests/Resources/FileNameNoSpaceRuleFixtures/**"],
),
Expand Down

0 comments on commit 7d4e570

Please sign in to comment.