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

Successful build of Http, reference master (9b4859), with Swift 6.1 for Android on 27 May 2025 16:51:52 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Balancingrock/Http.git
Reference: master
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/Balancingrock/Http
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9b48591 Added swift version, platforms and a LICENSE file
Cloned https://github.com/Balancingrock/Http.git
Revision (git rev-parse @):
9b48591b4fe9b7841ee427c29f8df8611107b2c2
SUCCESS checkout https://github.com/Balancingrock/Http.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Balancingrock/Http.git
https://github.com/Balancingrock/Http.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "ascii",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Balancingrock/Ascii"
    }
  ],
  "manifest_display_name" : "Http",
  "name" : "Http",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "Http",
      "targets" : [
        "Http"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Http",
      "module_type" : "SwiftTarget",
      "name" : "Http",
      "path" : "Sources/Http",
      "product_dependencies" : [
        "Ascii"
      ],
      "product_memberships" : [
        "Http"
      ],
      "sources" : [
        "Cookie.swift",
        "Host.swift",
        "Http.swift",
        "Request.swift",
        "Response.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/Balancingrock/Ascii
[1/99] Fetching ascii
Fetched https://github.com/Balancingrock/Ascii from cache (0.48s)
Computing version for https://github.com/Balancingrock/Ascii
Computed https://github.com/Balancingrock/Ascii at 1.5.2 (1.12s)
Creating working copy for https://github.com/Balancingrock/Ascii
Working copy of https://github.com/Balancingrock/Ascii resolved at 1.5.2
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module Ascii
[5/5] Compiling Ascii Ascii.swift
[7/13] Compiling Http Version.swift
/host/spi-builder-workspace/Sources/Http/Version.swift:63:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
41 | /// This enum encodes the different versions of the HTTP protocol
42 |
43 | public enum Version: String {
   |             `- note: consider making enum 'Version' conform to the 'Sendable' protocol
44 |
45 |
   :
61 |     /// If operations are added, be sure to include them in "all".
62 |
63 |     public static let all: Array<Version> = [.http1_0, .http1_1, .http1_x]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[8/13] Compiling Http Http.swift
[9/13] Emitting module Http
/host/spi-builder-workspace/Sources/Http/Cookie.swift:56:24: warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
 44 | /// The request cookies consist of a name and value only. The response cookies can have attributes.
 45 |
 46 | public final class Cookie: CustomStringConvertible {
    |                    `- note: class 'Cookie' does not conform to the 'Sendable' protocol
 47 |
 48 |
    :
 54 |     // Used when no cookies are present
 55 |
 56 |     private static let noCookies = Cookies()
    |                        |- warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'noCookies' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |
/host/spi-builder-workspace/Sources/Http/Request.swift:95:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
 53 |     /// The available methods.
 54 |
 55 |     public enum Method: String {
    |                 `- note: consider making enum 'Method' conform to the 'Sendable' protocol
 56 |
 57 |
    :
 93 |         /// If operations are added, be sure to include them in "allValues".
 94 |
 95 |         public static let all: Array<Method> = [.get, .head, .post, .put, .delete, .trace, .connect]
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/Http/Version.swift:63:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
41 | /// This enum encodes the different versions of the HTTP protocol
42 |
43 | public enum Version: String {
   |             `- note: consider making enum 'Version' conform to the 'Sendable' protocol
44 |
45 |
   :
61 |     /// If operations are added, be sure to include them in "all".
62 |
63 |     public static let all: Array<Version> = [.http1_0, .http1_1, .http1_x]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[10/13] Compiling Http Host.swift
[11/13] Compiling Http Cookie.swift
/host/spi-builder-workspace/Sources/Http/Cookie.swift:56:24: warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
 44 | /// The request cookies consist of a name and value only. The response cookies can have attributes.
 45 |
 46 | public final class Cookie: CustomStringConvertible {
    |                    `- note: class 'Cookie' does not conform to the 'Sendable' protocol
 47 |
 48 |
    :
 54 |     // Used when no cookies are present
 55 |
 56 |     private static let noCookies = Cookies()
    |                        |- warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'noCookies' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |
[12/13] Compiling Http Request.swift
/host/spi-builder-workspace/Sources/Http/Request.swift:95:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
 53 |     /// The available methods.
 54 |
 55 |     public enum Method: String {
    |                 `- note: consider making enum 'Method' conform to the 'Sendable' protocol
 56 |
 57 |
    :
 93 |         /// If operations are added, be sure to include them in "allValues".
 94 |
 95 |         public static let all: Array<Method> = [.get, .head, .post, .put, .delete, .trace, .connect]
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 |     }
 97 |
[13/13] Compiling Http Response.swift
Build complete! (14.61s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "ascii",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Balancingrock/Ascii"
    }
  ],
  "manifest_display_name" : "Http",
  "name" : "Http",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "Http",
      "targets" : [
        "Http"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Http",
      "module_type" : "SwiftTarget",
      "name" : "Http",
      "path" : "Sources/Http",
      "product_dependencies" : [
        "Ascii"
      ],
      "product_memberships" : [
        "Http"
      ],
      "sources" : [
        "Cookie.swift",
        "Host.swift",
        "Http.swift",
        "Request.swift",
        "Response.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.