Skip to content

Commit ae35641

Browse files
committed
fix failure to build docs when no Snippets/ directory exists
1 parent 1df68cf commit ae35641

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SymbolGraphBuilder/Sources/SPM.PackageSources.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ extension SPM.PackageSources
4848
}
4949

5050
let snippets:FilePath = root.appending(snippetsDirectory)
51+
if !snippets.directory.exists()
52+
{
53+
return
54+
}
55+
5156
try snippets.directory.walk
5257
{
5358
let file:(path:FilePath, extension:String)

0 commit comments

Comments
 (0)