mirror of
https://github.com/krzysztofzablocki/Sourcery.git
synced 2026-04-07 19:17:40 +00:00
SPM Plugin: Display target name when .sourcery.yml is not found (#1096)
* SPM Plugin: Display target name when .sourcery.yml is not found * If yml file is missing, continue with next target instead of stopping all processing
This commit is contained in:
@@ -35,8 +35,8 @@ extension SourceryCommandPlugin: CommandPlugin {
|
||||
let sourcery = try context.tool(named: "SourceryExecutable").path.string
|
||||
|
||||
guard FileManager.default.fileExists(atPath: configFilePath) else {
|
||||
Diagnostics.warning("⚠️ Could not find `.sourcery.yml` for the given target")
|
||||
return
|
||||
Diagnostics.warning("⚠️ Could not find `.sourcery.yml` for target \(target.name)")
|
||||
continue
|
||||
}
|
||||
|
||||
try run(sourcery, withConfig: configFilePath, cacheBasePath: context.pluginWorkDirectory.string)
|
||||
|
||||
Reference in New Issue
Block a user