The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build GroqSwift, reference 0.1.1 (8a08b6), with Swift 6.1 for Wasm on 30 May 2025 10:51:00 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/groq_swift.git
Reference: 0.1.1
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/groq_swift
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at 8a08b68 Disable SwiftLint plugin on Linux platforms
Cloned https://github.com/engali94/groq_swift.git
Revision (git rev-parse @):
8a08b68e10e221d446842d953aa1e21f3fa3763a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/groq_swift.git at 0.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/engali94/groq_swift.git
https://github.com/engali94/groq_swift.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"
    },
    {
      "identity" : "swiftlintplugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/lukepistrol/SwiftLintPlugin"
    }
  ],
  "manifest_display_name" : "GroqSwift",
  "name" : "GroqSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "GroqSwift",
      "targets" : [
        "GroqSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GroqSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "GroqSwiftTests",
      "path" : "Tests/GroqSwiftTests",
      "sources" : [
        "ChatCompletionTests.swift",
        "ModelsTests.swift",
        "StreamingTests.swift",
        "TestUtils.swift"
      ],
      "target_dependencies" : [
        "GroqSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GroqSwift",
      "module_type" : "SwiftTarget",
      "name" : "GroqSwift",
      "path" : "Sources/GroqSwift",
      "product_memberships" : [
        "GroqSwift"
      ],
      "sources" : [
        "Errors.swift",
        "GroqClient.swift",
        "Message.swift",
        "Models.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/lukepistrol/SwiftLintPlugin
Fetching https://github.com/apple/swift-docc-plugin
[1/358] Fetching swiftlintplugin
[134/2407] Fetching swiftlintplugin, swift-docc-plugin
Fetched https://github.com/lukepistrol/SwiftLintPlugin from cache (0.69s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.69s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (4.41s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3392] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.56s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.86s)
Computing version for https://github.com/lukepistrol/SwiftLintPlugin
Computed https://github.com/lukepistrol/SwiftLintPlugin at 0.59.1 (1.03s)
Creating working copy for https://github.com/lukepistrol/SwiftLintPlugin
Working copy of https://github.com/lukepistrol/SwiftLintPlugin resolved at 0.59.1
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
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
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
[1397/41085097] Downloading https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.59.1/SwiftLintBinary.artifactbundle.zip (5.34s)
[1/1] Compiling plugin SwiftLintFix
[2/2] Compiling plugin SwiftLint
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/11] Compiling GroqSwift Models.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/11] Emitting module GroqSwift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let apiKey: String
 18 |     private let host: URL
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// Initialize a new GroqClient
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/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ) {
 31 |         self.apiKey = apiKey
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/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ) {
 31 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:176:87: error: cannot find type 'URLRequest' in scope
174 |     // swiftlint:enable function_body_length
175 |
176 |     private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
177 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
178 |         urlComponents?.path += "/chat/completions"
[9/11] Compiling GroqSwift Errors.swift
[10/11] Compiling GroqSwift Message.swift
[11/11] Compiling GroqSwift GroqClient.swift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let apiKey: String
 18 |     private let host: URL
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// Initialize a new GroqClient
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/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ) {
 31 |         self.apiKey = apiKey
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/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ) {
 31 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:176:87: error: cannot find type 'URLRequest' in scope
174 |     // swiftlint:enable function_body_length
175 |
176 |     private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
177 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
178 |         urlComponents?.path += "/chat/completions"
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:55:23: error: cannot find 'URLRequest' in scope
 53 |         }
 54 |
 55 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 56 |         request.httpMethod = method
 57 |         request.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:64:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         }
 63 |
 64 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |
 66 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:111:38: error: cannot find 'URLRequest' in scope
109 |                     }
110 |
111 |                     var urlRequest = URLRequest(url: url)
    |                                      `- error: cannot find 'URLRequest' in scope
112 |                     urlRequest.httpMethod = "POST"
113 |                     urlRequest.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:184:26: error: cannot find 'URLRequest' in scope
182 |         }
183 |
184 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
185 |         urlRequest.httpMethod = "POST"
186 |         urlRequest.allHTTPHeaderFields = headers()
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 SwiftLintFix
[2/2] Compiling plugin SwiftLint
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/10] Compiling GroqSwift Models.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling GroqSwift Errors.swift
[8/10] Emitting module GroqSwift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let apiKey: String
 18 |     private let host: URL
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// Initialize a new GroqClient
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/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ) {
 31 |         self.apiKey = apiKey
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/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ) {
 31 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:176:87: error: cannot find type 'URLRequest' in scope
174 |     // swiftlint:enable function_body_length
175 |
176 |     private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
177 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
178 |         urlComponents?.path += "/chat/completions"
[9/10] Compiling GroqSwift Message.swift
[10/10] Compiling GroqSwift GroqClient.swift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let apiKey: String
 18 |     private let host: URL
 19 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |
 21 |     /// Initialize a new GroqClient
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/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ) {
 31 |         self.apiKey = apiKey
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/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 27 |         apiKey: String,
 28 |         host: URL = GroqClient.defaultHost,
 29 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ) {
 31 |         self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:176:87: error: cannot find type 'URLRequest' in scope
174 |     // swiftlint:enable function_body_length
175 |
176 |     private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
177 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
178 |         urlComponents?.path += "/chat/completions"
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:55:23: error: cannot find 'URLRequest' in scope
 53 |         }
 54 |
 55 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 56 |         request.httpMethod = method
 57 |         request.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:64:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 62 |         }
 63 |
 64 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 65 |
 66 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:111:38: error: cannot find 'URLRequest' in scope
109 |                     }
110 |
111 |                     var urlRequest = URLRequest(url: url)
    |                                      `- error: cannot find 'URLRequest' in scope
112 |                     urlRequest.httpMethod = "POST"
113 |                     urlRequest.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:184:26: error: cannot find 'URLRequest' in scope
182 |         }
183 |
184 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
185 |         urlRequest.httpMethod = "POST"
186 |         urlRequest.allHTTPHeaderFields = headers()
BUILD FAILURE 6.1 wasm