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

Successful build of Prch, reference 1.0.0-alpha.2 (b9329b), with Swift 6.1 for Linux on 27 Apr 2025 01:31:45 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/Prch.git
Reference: 1.0.0-alpha.2
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/brightdigit/Prch
 * tag               1.0.0-alpha.2 -> FETCH_HEAD
HEAD is now at b9329ba Allow Status Code Decoding (#30)
Cloned https://github.com/brightdigit/Prch.git
Revision (git rev-parse @):
b9329bab762886dbc478c9f6850a63bfde7fde93
SUCCESS checkout https://github.com/brightdigit/Prch.git at 1.0.0-alpha.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/brightdigit/Prch.git
https://github.com/brightdigit/Prch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Prch",
  "name" : "Prch",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "Prch",
      "targets" : [
        "Prch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PrchModel",
      "targets" : [
        "PrchModel"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrchTests",
      "module_type" : "SwiftTarget",
      "name" : "PrchTests",
      "path" : "Tests/PrchTests",
      "sources" : [
        "PrchTests.swift",
        "ServiceImplTests.swift",
        "URLComponents.swift"
      ],
      "target_dependencies" : [
        "Prch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PrchModel",
      "module_type" : "SwiftTarget",
      "name" : "PrchModel",
      "path" : "Sources/PrchModel",
      "product_memberships" : [
        "Prch",
        "PrchModel"
      ],
      "sources" : [
        "API.swift",
        "Array.swift",
        "CoderError.swift",
        "Content.swift",
        "ContentDecodable.swift",
        "ContentEncodable.swift",
        "CustomServiceDecoding.swift",
        "CustomServiceEncoding.swift",
        "Decodable.swift",
        "Decoder.swift",
        "Dictionary.swift",
        "Empty.swift",
        "Encodable.swift",
        "EncodableValue.swift",
        "Encoder.swift",
        "JSONDecoder.swift",
        "JSONEncoder.swift",
        "RequestMethod.swift",
        "ServiceCall.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Prch",
      "module_type" : "SwiftTarget",
      "name" : "Prch",
      "path" : "Sources/Prch",
      "product_memberships" : [
        "Prch"
      ],
      "sources" : [
        "AuthorizationManager.swift",
        "NullAuthorizationManager.swift",
        "Service.swift",
        "ServiceProtocol.swift",
        "Session/RequestError.swift",
        "Session/Session.swift",
        "Session/SessionAuthorization.swift",
        "Session/SessionRequest.swift",
        "Session/SessionResponse.swift",
        "Session/URLSession/URLRequest.swift",
        "Session/URLSession/URLSession.swift",
        "Session/URLSession/URLSessionResponse.swift"
      ],
      "target_dependencies" : [
        "PrchModel"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/21] Compiling PrchModel Content.swift
[5/21] Compiling PrchModel ContentDecodable.swift
[6/21] Compiling PrchModel ContentEncodable.swift
[7/21] Emitting module PrchModel
/host/spi-builder-workspace/Sources/PrchModel/Empty.swift:19:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Empty: ContentDecodable, ContentEncodable, Equatable {
   |               `- note: consider making struct 'Empty' conform to the 'Sendable' protocol
 2 |   public static func decode<CoderType>(
 3 |     _: CoderType.DataType,
   :
17 |   }
18 |
19 |   public static let value = Empty()
   |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |   private init() {}
[8/23] Compiling PrchModel EncodableValue.swift
[9/23] Compiling PrchModel Encoder.swift
[10/23] Compiling PrchModel RequestMethod.swift
[11/23] Compiling PrchModel ServiceCall.swift
[12/23] Compiling PrchModel Empty.swift
/host/spi-builder-workspace/Sources/PrchModel/Empty.swift:19:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Empty: ContentDecodable, ContentEncodable, Equatable {
   |               `- note: consider making struct 'Empty' conform to the 'Sendable' protocol
 2 |   public static func decode<CoderType>(
 3 |     _: CoderType.DataType,
   :
17 |   }
18 |
19 |   public static let value = Empty()
   |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |   private init() {}
[13/23] Compiling PrchModel Encodable.swift
/host/spi-builder-workspace/Sources/PrchModel/Empty.swift:19:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Empty: ContentDecodable, ContentEncodable, Equatable {
   |               `- note: consider making struct 'Empty' conform to the 'Sendable' protocol
 2 |   public static func decode<CoderType>(
 3 |     _: CoderType.DataType,
   :
17 |   }
18 |
19 |   public static let value = Empty()
   |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Empty' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 |   private init() {}
[14/23] Compiling PrchModel JSONDecoder.swift
[15/23] Compiling PrchModel JSONEncoder.swift
[16/23] Compiling PrchModel CustomServiceDecoding.swift
[17/23] Compiling PrchModel CustomServiceEncoding.swift
[18/23] Compiling PrchModel Decodable.swift
[19/23] Compiling PrchModel API.swift
[20/23] Compiling PrchModel Array.swift
[21/23] Compiling PrchModel CoderError.swift
[22/23] Compiling PrchModel Decoder.swift
[23/23] Compiling PrchModel Dictionary.swift
[25/36] Compiling Prch SessionAuthorization.swift
[26/36] Compiling Prch SessionRequest.swift
[27/37] Compiling Prch SessionResponse.swift
[28/37] Compiling Prch URLRequest.swift
[29/37] Compiling Prch RequestError.swift
[30/37] Compiling Prch Session.swift
[31/37] Compiling Prch AuthorizationManager.swift
[32/37] Compiling Prch NullAuthorizationManager.swift
[33/37] Emitting module Prch
[34/37] Compiling Prch Service.swift
[35/37] Compiling Prch ServiceProtocol.swift
[36/37] Compiling Prch URLSession.swift
[37/37] Compiling Prch URLSessionResponse.swift
Build complete! (9.00s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Prch",
  "name" : "Prch",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "Prch",
      "targets" : [
        "Prch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PrchModel",
      "targets" : [
        "PrchModel"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrchTests",
      "module_type" : "SwiftTarget",
      "name" : "PrchTests",
      "path" : "Tests/PrchTests",
      "sources" : [
        "PrchTests.swift",
        "ServiceImplTests.swift",
        "URLComponents.swift"
      ],
      "target_dependencies" : [
        "Prch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PrchModel",
      "module_type" : "SwiftTarget",
      "name" : "PrchModel",
      "path" : "Sources/PrchModel",
      "product_memberships" : [
        "Prch",
        "PrchModel"
      ],
      "sources" : [
        "API.swift",
        "Array.swift",
        "CoderError.swift",
        "Content.swift",
        "ContentDecodable.swift",
        "ContentEncodable.swift",
        "CustomServiceDecoding.swift",
        "CustomServiceEncoding.swift",
        "Decodable.swift",
        "Decoder.swift",
        "Dictionary.swift",
        "Empty.swift",
        "Encodable.swift",
        "EncodableValue.swift",
        "Encoder.swift",
        "JSONDecoder.swift",
        "JSONEncoder.swift",
        "RequestMethod.swift",
        "ServiceCall.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Prch",
      "module_type" : "SwiftTarget",
      "name" : "Prch",
      "path" : "Sources/Prch",
      "product_memberships" : [
        "Prch"
      ],
      "sources" : [
        "AuthorizationManager.swift",
        "NullAuthorizationManager.swift",
        "Service.swift",
        "ServiceProtocol.swift",
        "Session/RequestError.swift",
        "Session/Session.swift",
        "Session/SessionAuthorization.swift",
        "Session/SessionRequest.swift",
        "Session/SessionResponse.swift",
        "Session/URLSession/URLRequest.swift",
        "Session/URLSession/URLSession.swift",
        "Session/URLSession/URLSessionResponse.swift"
      ],
      "target_dependencies" : [
        "PrchModel"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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
Done.