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 main (804176), with Swift 5.9 for Linux on 9 Sep 2024 23:54:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/coenttb/swift-html-to-pdf.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8041767 Update README.md
Cloned https://github.com/coenttb/swift-html-to-pdf.git
Revision (git rev-parse @):
80417671ab977cc58e964f57f80e48c0d3534e7d
SUCCESS checkout https://github.com/coenttb/swift-html-to-pdf.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
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-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:ce1b417af3daf69cc45d04f29a58e7801e2026daba8632e701e58a5b08a16260
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/HtmlToPdfTests/HtmlToPdf.xctestplan
Building for debugging...
[1/6] Compiling HtmlToPdf UIPrintPageRenderer.swift
[2/6] Compiling HtmlToPdf WebViewPool.swift
[3/6] Compiling HtmlToPdf NSPrintOperation.swift
[4/6] Compiling HtmlToPdf HtmlToPdf.swift
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:25:9: warning: stored property 'fileUrl' of 'Sendable'-conforming struct 'Document' has non-sendable type 'URL'
    let fileUrl: URL
        ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:215:30: error: type 'CGSize' has no member 'paperSize'
        paperSize: CGSize = .paperSize(),
                            ~^~~~~~~~~
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:199:9: warning: stored property 'paperSize' of 'Sendable'-conforming struct 'PDFConfiguration' has non-sendable type 'CGSize'
    let paperSize: CGSize
        ^
Foundation.CGSize:1:15: note: struct 'CGSize' does not conform to the 'Sendable' protocol
public struct CGSize {
              ^
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:200:9: warning: stored property 'baseURL' of 'Sendable'-conforming struct 'PDFConfiguration' has non-sendable type 'URL?'
    let baseURL: URL?
        ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:63:40: error: value of type 'Document' has no member 'print'
                    try await document.print(
                              ~~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:98:14: error: value of type 'Document' has no member 'print'
            .print(
             ^~~~~
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:134:11: error: value of type 'Document' has no member 'print'
        ).print(
~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:234:10: error: cannot call value of non-function type 'PDFConfiguration'
        .a4(margins: .a4)
         ^
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:234:23: error: cannot infer contextual base in reference to member 'a4'
        .a4(margins: .a4)
                     ~^~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module HtmlToPdf
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:25:9: warning: stored property 'fileUrl' of 'Sendable'-conforming struct 'Document' has non-sendable type 'URL'
    let fileUrl: URL
        ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:215:30: error: type 'CGSize' has no member 'paperSize'
        paperSize: CGSize = .paperSize(),
                            ~^~~~~~~~~
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:199:9: warning: stored property 'paperSize' of 'Sendable'-conforming struct 'PDFConfiguration' has non-sendable type 'CGSize'
    let paperSize: CGSize
        ^
Foundation.CGSize:1:15: note: struct 'CGSize' does not conform to the 'Sendable' protocol
public struct CGSize {
              ^
/host/spi-builder-workspace/Sources/HtmlToPdf/HtmlToPdf.swift:200:9: warning: stored property 'baseURL' of 'Sendable'-conforming struct 'PDFConfiguration' has non-sendable type 'URL?'
    let baseURL: URL?
        ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
[6/6] 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'
                            try await document.print(
                                      ~~~~~~~~ ^~~~~
error: fatalError
BUILD FAILURE 5.9 linux