From d39b353e40f67485558b14bcc682a344a306ceff Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Wed, 2 Oct 2024 10:47:52 +0100 Subject: [PATCH 1/3] containertool: Switch to Swift 5 language mode The nightly mainline compiler used by the pull request checks objects to the way containertool uses stderr. Switch to language mode 5 until this can be rewritten. --- Package.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index c655f7c..82be59d 100644 --- a/Package.swift +++ b/Package.swift @@ -43,7 +43,8 @@ let package = Package( .product(name: "ArgumentParser", package: "swift-argument-parser"), .product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux])), .target(name: "ContainerRegistry"), .target(name: "VendorCNIOExtrasZlib"), - ] + ], + swiftSettings: [.swiftLanguageMode(.v5)] ), .target( // Vendored from https://github.com/apple/swift-nio-extras From 13af109599dc16c7a6ada7328764a495c7fd12bd Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Wed, 2 Oct 2024 10:55:38 +0100 Subject: [PATCH 2/3] ci: Enable API breakage checks --- .github/workflows/pull_request.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 11a5157..40bf136 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,7 +10,6 @@ jobs: uses: apple/swift-nio/.github/workflows/soundness.yml@main with: api_breakage_check_container_image: "swift:6.0-noble" - api_breakage_check_enabled: false docs_check_container_image: "swift:6.0-noble" license_header_check_project_name: "SwiftContainerPlugin" shell_check_container_image: "swift:6.0-noble" From 904c23b86c0bb99f9e2f0a418ed4814b4ebeaa06 Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Wed, 2 Oct 2024 11:38:56 +0100 Subject: [PATCH 3/3] docs: Generate documentation for containertool --- .spi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.spi.yml b/.spi.yml index f1587e6..e424596 100644 --- a/.spi.yml +++ b/.spi.yml @@ -2,5 +2,5 @@ version: 1 builder: configs: - documentation_targets: - - ContainerRegistry + - containertool - ContainerImageBuilderPlugin