The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenGraphKit, reference main (481695), with Swift 6.1 for Wasm on 29 May 2025 13:32:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/engali94/OpenGraphKit.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/engali94/OpenGraphKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 481695e chore: fix a typo
Cloned https://github.com/engali94/OpenGraphKit.git
Revision (git rev-parse @):
481695e44305770b617cef46a130b824a38b3060
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/OpenGraphKit.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/engali94/OpenGraphKit.git
https://github.com/engali94/OpenGraphKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "OpenGraphKit",
  "name" : "OpenGraphKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenGraphKit",
      "targets" : [
        "OpenGraphKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenGraphKitTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenGraphKitTests",
      "path" : "Tests/OpenGraphKitTests",
      "sources" : [
        "OpenGraphKitTests.swift"
      ],
      "target_dependencies" : [
        "OpenGraphKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenGraphKit",
      "module_type" : "SwiftTarget",
      "name" : "OpenGraphKit",
      "path" : "Sources/OpenGraphKit",
      "product_memberships" : [
        "OpenGraphKit"
      ],
      "sources" : [
        "OpenGraphKit.swift",
        "OpenGraphMetadata.swift",
        "OpenGraphParserError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.39s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (2.75s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.43s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (2.09s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Compiling OpenGraphKit OpenGraphMetadata.swift
[6/8] Compiling OpenGraphKit OpenGraphParserError.swift
[7/8] Emitting module OpenGraphKit
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:82:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 | ///
 81 | public final class OpenGraphParser {
 82 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Initializes a new instance of OpenGraphParser.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |         self.urlSession = urlSession
 90 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:134:35: error: cannot find type 'URLRequest' in scope
132 |     /// - Throws: `OpenGraphParserError.networkError` if there's an issue with the network request.
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
    |                                   `- error: cannot find type 'URLRequest' in scope
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:238:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
236 | }
237 |
238 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
239 |
240 |     /// A reimplementation of `URLSession.shared.data(from: url)` required for Linux
[8/8] Compiling OpenGraphKit OpenGraphKit.swift
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:82:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 | ///
 81 | public final class OpenGraphParser {
 82 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Initializes a new instance of OpenGraphParser.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |         self.urlSession = urlSession
 90 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:134:35: error: cannot find type 'URLRequest' in scope
132 |     /// - Throws: `OpenGraphParserError.networkError` if there's an issue with the network request.
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
    |                                   `- error: cannot find type 'URLRequest' in scope
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:238:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
236 | }
237 |
238 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
239 |
240 |     /// A reimplementation of `URLSession.shared.data(from: url)` required for Linux
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:101:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
 99 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
100 |     public func parse(url: URL) async throws -> OpenGraphMetadata {
101 |         let (data, _) = try await urlSession.asyncData(from: url)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
102 |         guard let htmlString = String(data: data, encoding: .utf8) else {
103 |             throw OpenGraphParserError.parsingError("Unable to convert data to string")
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:135:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
137 |             throw OpenGraphParserError.parsingError("Unable to convert data to string")
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:269:33: error: cannot find type 'URLRequest' in scope
267 |     }
268 |
269 |     func asyncData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                 `- error: cannot find type 'URLRequest' in scope
270 |         return try await withCheckedThrowingContinuation { continuation in
271 |             let task = self.dataTask(with: request) { data, response, error in
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling OpenGraphKit OpenGraphParserError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Compiling OpenGraphKit OpenGraphMetadata.swift
[6/7] Emitting module OpenGraphKit
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:82:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 | ///
 81 | public final class OpenGraphParser {
 82 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Initializes a new instance of OpenGraphParser.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |         self.urlSession = urlSession
 90 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:134:35: error: cannot find type 'URLRequest' in scope
132 |     /// - Throws: `OpenGraphParserError.networkError` if there's an issue with the network request.
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
    |                                   `- error: cannot find type 'URLRequest' in scope
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:238:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
236 | }
237 |
238 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
239 |
240 |     /// A reimplementation of `URLSession.shared.data(from: url)` required for Linux
[7/7] Compiling OpenGraphKit OpenGraphKit.swift
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:82:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 | ///
 81 | public final class OpenGraphParser {
 82 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Initializes a new instance of OpenGraphParser.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |         self.urlSession = urlSession
 90 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:134:35: error: cannot find type 'URLRequest' in scope
132 |     /// - Throws: `OpenGraphParserError.networkError` if there's an issue with the network request.
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
    |                                   `- error: cannot find type 'URLRequest' in scope
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:238:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
236 | }
237 |
238 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
239 |
240 |     /// A reimplementation of `URLSession.shared.data(from: url)` required for Linux
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:101:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
 99 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
100 |     public func parse(url: URL) async throws -> OpenGraphMetadata {
101 |         let (data, _) = try await urlSession.asyncData(from: url)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
102 |         guard let htmlString = String(data: data, encoding: .utf8) else {
103 |             throw OpenGraphParserError.parsingError("Unable to convert data to string")
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:135:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
137 |             throw OpenGraphParserError.parsingError("Unable to convert data to string")
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:269:33: error: cannot find type 'URLRequest' in scope
267 |     }
268 |
269 |     func asyncData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                 `- error: cannot find type 'URLRequest' in scope
270 |         return try await withCheckedThrowingContinuation { continuation in
271 |             let task = self.dataTask(with: request) { data, response, error in
BUILD FAILURE 6.1 wasm