Skip to content

Commit 4e16cbb

Browse files
committed
turn the Massbuild tool into UnidocBuild, which can now query the swiftinit API to determine what tags to build
1 parent 0a3359f commit 4e16cbb

File tree

7 files changed

+210
-192
lines changed

7 files changed

+210
-192
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.build
22
.massbuild
3+
.swiftinit
34
.testing
45
.unidoc
56
.vscode

Package.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,6 @@ let package:Package = .init(
455455
]),
456456

457457

458-
.executableTarget(name: "Massbuild", dependencies:
459-
[
460-
.target(name: "SymbolGraphBuilder"),
461-
]),
462-
463458
.executableTarget(name: "UnidocBuild", dependencies:
464459
[
465460
.target(name: "HTTPClient"),

Sources/GitHubClient/GitHubClient.Connection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ extension GitHubClient<GitHubOAuth.API>.Connection
9494
}
9595

9696
status = response.status
97-
break
97+
break following
9898
}
9999

100100
throw GitHubClient<GitHubOAuth.API>.StatusError.init(code: status)

Sources/HTTPClient/ClientInterfaceHandler.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ extension ClientInterfaceHandler:ChannelOutboundHandler
4444
batch:[HPACKHeaders]
4545
)
4646

47+
func errorCaught(context:ChannelHandlerContext, error:any Error)
48+
{
49+
self.owner?.finish(throwing: error)
50+
context.channel.close(promise: nil)
51+
}
52+
4753
func write(context:ChannelHandlerContext, data:NIOAny, promise:EventLoopPromise<Void>?)
4854
{
4955
let owner:AsyncThrowingStream<HTTP2Client.Facet, any Error>.Continuation
@@ -65,14 +71,12 @@ extension ClientInterfaceHandler:ChannelOutboundHandler
6571
switch $0
6672
{
6773
case .success(let stream):
68-
stream.write(HTTP2Frame.FramePayload.headers(
74+
stream.writeAndFlush(HTTP2Frame.FramePayload.headers(
6975
HTTP2Frame.FramePayload.Headers.init(
7076
headers: request,
7177
endStream: true)),
7278
promise: nil)
7379

74-
stream.flush()
75-
7680
case .failure(let error):
7781
owner.finish(throwing: error)
7882
context.channel.close(promise: nil)

Sources/Massbuild/Main.swift

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

0 commit comments

Comments
 (0)