Skip to content

Commit 5033997

Browse files
committed
perform documentation builds in a different scratch directory than .build/
1 parent fd483eb commit 5033997

34 files changed

+933
-755
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.build
2+
.build.*
23
.swiftinit
34
.testing
45
.vscode

Package.resolved

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ let package:Package = .init(
101101
.package(url: "https://github.com/tayloraswift/swift-mongodb", .upToNextMinor(
102102
from: "0.10.5")),
103103
.package(url: "https://github.com/tayloraswift/swift-png", .upToNextMinor(
104-
from: "4.1.0")),
104+
from: "4.2.0")),
105105

106106
.package(url: "https://github.com/apple/swift-atomics", .upToNextMinor(
107107
from: "1.2.0")),

Sources/SymbolGraphBuilder/Artifacts/ArtifactError.swift

Lines changed: 0 additions & 34 deletions
This file was deleted.

Sources/SymbolGraphBuilder/Artifacts/Artifacts.swift

Lines changed: 0 additions & 197 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import System
2+
3+
extension SPM
4+
{
5+
@frozen public
6+
struct ArtifactDirectory:SystemWorkspace
7+
{
8+
public
9+
let path:FilePath
10+
11+
@inlinable public
12+
init(path:FilePath)
13+
{
14+
self.path = path
15+
}
16+
}
17+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import System
2+
import TraceableErrors
3+
4+
extension SPM
5+
{
6+
public
7+
struct ArtifactError:Error, Sendable
8+
{
9+
public
10+
let underlying:any Error
11+
public
12+
let path:FilePath
13+
14+
public
15+
init(underlying:any Error, path:FilePath)
16+
{
17+
self.underlying = underlying
18+
self.path = path
19+
}
20+
}
21+
}
22+
extension SPM.ArtifactError:Equatable
23+
{
24+
public static
25+
func == (lhs:Self, rhs:Self) -> Bool
26+
{
27+
lhs.path == rhs.path && lhs.underlying == rhs.underlying
28+
}
29+
}
30+
extension SPM.ArtifactError:TraceableError
31+
{
32+
public
33+
var notes:[String]
34+
{
35+
["while processing artifact '\(self.path)'"]
36+
}
37+
}

Sources/SymbolGraphBuilder/Artifacts/Artifacts.Culture.swift renamed to Sources/SymbolGraphBuilder/Artifacts/SPM.Artifacts.Culture.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import SymbolGraphs
66
import Symbols
77
import System
88

9-
extension Artifacts
9+
extension SPM.Artifacts
1010
{
1111
struct Culture
1212
{
@@ -29,14 +29,14 @@ extension Artifacts
2929
}
3030
}
3131
}
32-
extension Artifacts.Culture:Identifiable
32+
extension SPM.Artifacts.Culture:Identifiable
3333
{
3434
var id:Symbol.Module
3535
{
3636
self.module.id
3737
}
3838
}
39-
extension Artifacts.Culture
39+
extension SPM.Artifacts.Culture
4040
{
4141
func loadArticles(root:Symbol.FileBase) throws -> [MarkdownSourceFile]
4242
{
@@ -83,7 +83,7 @@ extension Artifacts.Culture
8383
}
8484
catch let error
8585
{
86-
throw ArtifactError.init(underlying: error, path: path)
86+
throw SPM.ArtifactError.init(underlying: error, path: path)
8787
}
8888
}
8989
}

0 commit comments

Comments
 (0)