From 03cc8b4906169cb27804bb99c5a708750d6e1265 Mon Sep 17 00:00:00 2001 From: Ian Leitch Date: Sat, 28 Dec 2024 18:12:42 +0000 Subject: [PATCH] Don't throw an error when a source file does not exist, closes #858 --- CHANGELOG.md | 2 +- Sources/Indexer/SourceFileCollector.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b4cdc534..64137af18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ ##### Bug Fixes -- None. +- A clean build is no longer required when a file is deleted from the scanned project. ## 3.0.0 (2024-12-27) diff --git a/Sources/Indexer/SourceFileCollector.swift b/Sources/Indexer/SourceFileCollector.swift index 8df3b33c4..04126bab3 100644 --- a/Sources/Indexer/SourceFileCollector.swift +++ b/Sources/Indexer/SourceFileCollector.swift @@ -43,7 +43,8 @@ public struct SourceFileCollector { if !isExcluded(file) { guard file.exists else { - throw PeripheryError.pathDoesNotExist(path: file.string) + logger.debug("Source file does not exist: \(file.string)") + return nil } let module = try indexStore.moduleName(for: unit)