From 2e72905ccc51cb43fe341abe4cc0e85105e5be06 Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Tue, 24 Oct 2023 08:50:44 +0200 Subject: [PATCH] Bump swift-format to 5.9 (#20) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump swift-format to 5.9 ### Motivation As per https://github.com/apple/swift-openapi-generator/issues/175. ### Modifications Bump swift-format, update to make soundness pass. ### Result Using swift-format 5.9. ### Test Plan Soundness passed. Reviewed by: dnadoba Builds: ✔︎ pull request validation (5.10) - Build finished. ✔︎ pull request validation (5.8) - Build finished. ✔︎ pull request validation (5.9) - Build finished. ✔︎ pull request validation (nightly) - Build finished. ✔︎ pull request validation (soundness) - Build finished. https://github.com/swift-server/swift-openapi-async-http-client/pull/20 --- .../Test_AsyncHTTPClientTransport.swift | 4 ++-- docker/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift b/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift index e899261..4a627a4 100644 --- a/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift +++ b/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift @@ -118,8 +118,8 @@ class Test_AsyncHTTPClientTransport: XCTestCase { struct TestSender: HTTPRequestSending { var sendClosure: - @Sendable (AsyncHTTPClientTransport.Request, HTTPClient, TimeAmount) async throws -> AsyncHTTPClientTransport - .Response + @Sendable (AsyncHTTPClientTransport.Request, HTTPClient, TimeAmount) async throws -> + AsyncHTTPClientTransport.Response func send( request: AsyncHTTPClientTransport.Request, with client: HTTPClient, diff --git a/docker/Dockerfile b/docker/Dockerfile index 4b7014a..3cc66ea 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,7 +17,7 @@ RUN mkdir -p $HOME/.tools RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile # swift-format -ARG swiftformat_version=508.0.0 +ARG swiftformat_version=509.0.0 RUN git clone --branch $swiftformat_version --depth 1 https://github.com/apple/swift-format $HOME/.tools/swift-format-source RUN cd $HOME/.tools/swift-format-source && swift build -c release -RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format \ No newline at end of file +RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format