From 170ca078ae1da583193888c785106c15da6643c7 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Thu, 18 Apr 2024 11:43:09 +1000 Subject: [PATCH] Try using `#filePath` instead of `#file` for SwiftLint See https://github.com/wordpress-mobile/WordPress-iOS-Shared/pull/354#discussion_r1567621270 --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 10231c9..9a9e32a 100644 --- a/Package.swift +++ b/Package.swift @@ -63,7 +63,7 @@ let package = Package( ) func loadSwiftLintVersion() -> Version { - let swiftLintConfigURL = URL(fileURLWithPath: #file) + let swiftLintConfigURL = URL(fileURLWithPath: #filePath) .deletingLastPathComponent() .appendingPathComponent(".swiftlint.yml")