The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build swift-html-to-pdf, reference 0.3.0 (d4bcfc), with Swift 6.0 for Linux on 17 Sep 2024 07:55:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/coenttb/swift-html-to-pdf.git
Reference: 0.3.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/coenttb/swift-html-to-pdf
 * tag               0.3.0      -> FETCH_HEAD
HEAD is now at d4bcfc6 further work on the <img> feature. (#4)
Cloned https://github.com/coenttb/swift-html-to-pdf.git
Revision (git rev-parse @):
d4bcfc68f4874b6a561a9199b412187b87e7289d
SUCCESS checkout https://github.com/coenttb/swift-html-to-pdf.git at 0.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/coenttb/swift-html-to-pdf.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package@swift-6.0.swift:14:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
12 | }
13 |
14 | let package = Package(
   |               |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
   |               `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
15 |     name: "swift-html-to-pdf",
16 |     platforms: [.macOS(.v11), .iOS(.v14)],
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling HtmlToPdf UIPrintPageRenderer.swift
[4/8] Compiling HtmlToPdf NSPrintOperation.swift
[5/8] Compiling HtmlToPdf WebViewPool.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module HtmlToPdf
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:215:30: error: type 'CGSize' has no member 'paperSize'
213 |     public init(
214 |         margins: EdgeInsets,
215 |         paperSize: CGSize = .paperSize(),
    |                              `- error: type 'CGSize' has no member 'paperSize'
216 |         baseURL: URL? = nil,
217 |         orientation: PDFConfiguration.Orientation = .portrait
[7/8] Compiling HtmlToPdf HtmlToPdf.swift
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:215:30: error: type 'CGSize' has no member 'paperSize'
213 |     public init(
214 |         margins: EdgeInsets,
215 |         paperSize: CGSize = .paperSize(),
    |                              `- error: type 'CGSize' has no member 'paperSize'
216 |         baseURL: URL? = nil,
217 |         orientation: PDFConfiguration.Orientation = .portrait
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:63:40: error: value of type 'Document' has no member 'print'
 61 |             for document in self {
 62 |                 taskGroup.addTask {
 63 |                     try await document.print(
    |                                        `- error: value of type 'Document' has no member 'print'
 64 |                         configuration: configuration,
 65 |                         createDirectories: createDirectories
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:98:14: error: value of type 'Document' has no member 'print'
 96 |     ) async throws {
 97 |         try await Document(fileUrl: fileUrl, html: self)
 98 |             .print(
    |              `- error: value of type 'Document' has no member 'print'
 99 |                 configuration: configuration,
100 |                 createDirectories: createDirectories
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:134:11: error: value of type 'Document' has no member 'print'
132 |             fileUrl: directory.appendingPathComponent(title.replacingSlashesWithDivisionSlash()).appendingPathExtension("pdf"),
133 |             html: self
134 |         ).print(
    |           `- error: value of type 'Document' has no member 'print'
135 |             configuration: configuration,
136 |             createDirectories: createDirectories
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:234:10: error: cannot call value of non-function type 'PDFConfiguration'
232 |
233 |     public static var a4: PDFConfiguration {
234 |         .a4(margins: .a4)
    |          `- error: cannot call value of non-function type 'PDFConfiguration'
235 |     }
236 |
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:234:23: error: cannot infer contextual base in reference to member 'a4'
232 |
233 |     public static var a4: PDFConfiguration {
234 |         .a4(margins: .a4)
    |                       `- error: cannot infer contextual base in reference to member 'a4'
235 |     }
236 |
[8/8] Compiling HtmlToPdf HtmlToPdf-AsyncStream.swift
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf-AsyncStream.swift:40:48: error: value of type 'Document' has no member 'print'
38 |                     for document in documents {
39 |                         taskGroup.addTask {
40 |                             try await document.print(
   |                                                `- error: value of type 'Document' has no member 'print'
41 |                                 configuration: configuration,
42 |                                 createDirectories: createDirectories
BUILD FAILURE 6.0 linux