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 StarCraftKit, reference v1.0.0 (ddaa1f), with Swift 6.1 for Linux on 29 Apr 2025 19:19:57 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/StarCraftKit.git
Reference: v1.0.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/marcusziade/StarCraftKit
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at ddaa1fb Revert "Update README.md"
Cloned https://github.com/marcusziade/StarCraftKit.git
Revision (git rev-parse @):
ddaa1fb32762323c2b7114122d3322ad9b446c11
SUCCESS checkout https://github.com/marcusziade/StarCraftKit.git at v1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/marcusziade/StarCraftKit.git
https://github.com/marcusziade/StarCraftKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "StarCraftKit",
  "name" : "StarCraftKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "StarCraftKit",
      "targets" : [
        "StarCraftKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "StarCraftCLI",
      "targets" : [
        "StarCraftCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StarCraftKitTests",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftKitTests",
      "path" : "Tests/StarCraftKitTests",
      "sources" : [
        "StarCraftAPI_Tests.swift"
      ],
      "target_dependencies" : [
        "StarCraftKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StarCraftKit",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftKit",
      "path" : "Sources/StarCraftKit",
      "product_memberships" : [
        "StarCraftKit",
        "StarCraftCLI"
      ],
      "sources" : [
        "API_PandaScore/Models/DateFormatter+Ext.swift",
        "API_PandaScore/Models/SharedPandaScore.swift",
        "API_PandaScore/PandaScoreAPIError.swift",
        "API_PandaScore/Responses/MatchResponse.swift",
        "API_PandaScore/Responses/PlayersResponse.swift",
        "API_PandaScore/Responses/TournamentResponse.swift",
        "API_PandaScore/StarCraft2Endpoint.swift",
        "API_PandaScore/StarCraftAPI.swift",
        "Extensions/Array+Ext.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "StarCraftCLI",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftCLI",
      "path" : "Sources/StarCraftCLI",
      "product_memberships" : [
        "StarCraftCLI"
      ],
      "sources" : [
        "Commands/ActivePlayersCommand.swift",
        "Commands/Command.swift",
        "Commands/GameStatsCommand.swift",
        "Commands/LeagueDetailsCommand.swift",
        "Commands/LiveStreamsCommand.swift",
        "Commands/LiveTournamentsCommand.swift",
        "Commands/MatchStatsCommand.swift",
        "Commands/OngoingMatchesCommand.swift",
        "Commands/OngoingTournamentsCommand.swift",
        "Commands/PlayerActivityCommand.swift",
        "Commands/PlayerDetailsCommand.swift",
        "Commands/SeriesDetailsCommand.swift",
        "Commands/TournamentDetailsCommand.swift",
        "Commands/UpcomingStreamsCommand.swift",
        "Commands/UpcomingTournamentsCommand.swift",
        "StarCraftTUI.swift",
        "TUIStateManager.swift",
        "Utilities/ANSIColor.swift",
        "Utilities/LoadingAnimator.swift"
      ],
      "target_dependencies" : [
        "StarCraftKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling StarCraftKit StarCraftAPI.swift
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.token = token
22 |         self.urlSession = urlSession
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |         self.token = token
22 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:54:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 |     private let token: String
54 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 |     private var jsonDecoder: JSONDecoder {
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:92:45: error: cannot find type 'URLRequest' in scope
90 |     }
91 |
92 |     private func createRequest(url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
93 |         var request = URLRequest(url: url)
94 |         request.addValue("application/json", forHTTPHeaderField: "accept")
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:82:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
80 |
81 |         let request = createRequest(url: url)
82 |         let (data, response) = try await urlSession.data(for: request)
   |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
83 |         guard
84 |             let httpResponse = response as? HTTPURLResponse,
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:87:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
85 |             httpResponse.statusCode == 200
86 |         else {
87 |             throw PandaScoreAPIError(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500)
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
88 |         }
89 |         return try jsonDecoder.decode(T.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:93:23: error: cannot find 'URLRequest' in scope
91 |
92 |     private func createRequest(url: URL) -> URLRequest {
93 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
94 |         request.addValue("application/json", forHTTPHeaderField: "accept")
95 |         request.addValue("Bearer \(token)", forHTTPHeaderField: "authorization")
[5/17] Compiling StarCraftKit MatchResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/17] Compiling StarCraftKit DateFormatter+Ext.swift
[7/17] Compiling StarCraftKit SharedPandaScore.swift
[8/17] Emitting module StarCraftKit
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.token = token
22 |         self.urlSession = urlSession
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |         self.token = token
22 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:54:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 |     private let token: String
54 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 |     private var jsonDecoder: JSONDecoder {
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:92:45: error: cannot find type 'URLRequest' in scope
90 |     }
91 |
92 |     private func createRequest(url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
93 |         var request = URLRequest(url: url)
94 |         request.addValue("application/json", forHTTPHeaderField: "accept")
[9/17] Compiling StarCraftKit TournamentResponse.swift
[10/17] Compiling StarCraftKit StarCraft2Endpoint.swift
[11/17] Compiling StarCraftKit PandaScoreAPIError.swift
[12/17] Compiling StarCraftKit PlayersResponse.swift
[13/17] Compiling StarCraftKit Array+Ext.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling StarCraftKit StarCraftAPI.swift
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.token = token
22 |         self.urlSession = urlSession
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |         self.token = token
22 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:54:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 |     private let token: String
54 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 |     private var jsonDecoder: JSONDecoder {
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:92:45: error: cannot find type 'URLRequest' in scope
90 |     }
91 |
92 |     private func createRequest(url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
93 |         var request = URLRequest(url: url)
94 |         request.addValue("application/json", forHTTPHeaderField: "accept")
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:82:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
80 |
81 |         let request = createRequest(url: url)
82 |         let (data, response) = try await urlSession.data(for: request)
   |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
83 |         guard
84 |             let httpResponse = response as? HTTPURLResponse,
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:87:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
85 |             httpResponse.statusCode == 200
86 |         else {
87 |             throw PandaScoreAPIError(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500)
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
88 |         }
89 |         return try jsonDecoder.decode(T.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:93:23: error: cannot find 'URLRequest' in scope
91 |
92 |     private func createRequest(url: URL) -> URLRequest {
93 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
94 |         request.addValue("application/json", forHTTPHeaderField: "accept")
95 |         request.addValue("Bearer \(token)", forHTTPHeaderField: "authorization")
[3/15] Compiling StarCraftKit TournamentResponse.swift
[4/15] Compiling StarCraftKit StarCraft2Endpoint.swift
[5/15] Compiling StarCraftKit PlayersResponse.swift
[6/15] Compiling StarCraftKit Array+Ext.swift
[7/15] Compiling StarCraftKit MatchResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/15] Compiling StarCraftKit PandaScoreAPIError.swift
[9/15] Compiling StarCraftKit DateFormatter+Ext.swift
[10/15] Compiling StarCraftKit SharedPandaScore.swift
[11/15] Emitting module StarCraftKit
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.token = token
22 |         self.urlSession = urlSession
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |     let baseURL = URL(string: "https://api.pandascore.co/starcraft-2/")!
19 |
20 |     public init(token: String, urlSession: URLSession = .shared) {
   |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |         self.token = token
22 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:54:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |
53 |     private let token: String
54 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 |     private var jsonDecoder: JSONDecoder {
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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:92:45: error: cannot find type 'URLRequest' in scope
90 |     }
91 |
92 |     private func createRequest(url: URL) -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
93 |         var request = URLRequest(url: url)
94 |         request.addValue("application/json", forHTTPHeaderField: "accept")
BUILD FAILURE 6.1 linux