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:
Greg Ennis
2022-09-22 04:35:05 -04:00
committed by GitHub
parent 9846370ef0
commit 8856b45f86
@@ -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)