Skip to content

Commit

Permalink
Don't throw an error when a source file does not exist, closes #858 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch authored Dec 28, 2024
1 parent 03d889c commit b808d2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions Sources/Indexer/SourceFileCollector.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Configuration
import Foundation
import Logger
import Shared
import SourceGraph
import SwiftIndexStore
import SystemPackage
Expand Down Expand Up @@ -43,7 +42,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)
Expand Down

0 comments on commit b808d2e

Please sign in to comment.