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 AWSLambdaSwift, reference 0.2.0 (007267), with Swift 6.0 for Linux on 27 Nov 2024 07:43:18 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tonisuter/aws-lambda-swift.git
Reference: 0.2.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/tonisuter/aws-lambda-swift
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 0072674 Update for Swift 5.1
Cloned https://github.com/tonisuter/aws-lambda-swift.git
Revision (git rev-parse @):
00726748c8de14d4ca0bff540d9dc8d5bc7a900f
SUCCESS checkout https://github.com/tonisuter/aws-lambda-swift.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/tonisuter/aws-lambda-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling AWSLambdaSwift RuntimeError.swift
[4/10] Compiling AWSLambdaSwift CodableHandlers.swift
[5/10] Emitting module AWSLambdaSwift
[6/10] Compiling AWSLambdaSwift Types.swift
[7/10] Compiling AWSLambdaSwift URLSession+Utils.swift
/host/spi-builder-workspace/Sources/AWSLambdaSwift/URLSession+Utils.swift:21:13: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
19 |
20 |         let dataTask = self.dataTask(with: urlRequest) {
21 |             data = $0
   |             `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
22 |             response = $1
23 |             error = $2
/host/spi-builder-workspace/Sources/AWSLambdaSwift/URLSession+Utils.swift:22:13: warning: mutation of captured var 'response' in concurrently-executing code; this is an error in the Swift 6 language mode
20 |         let dataTask = self.dataTask(with: urlRequest) {
21 |             data = $0
22 |             response = $1
   |             `- warning: mutation of captured var 'response' in concurrently-executing code; this is an error in the Swift 6 language mode
23 |             error = $2
24 |
/host/spi-builder-workspace/Sources/AWSLambdaSwift/URLSession+Utils.swift:23:13: warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
21 |             data = $0
22 |             response = $1
23 |             error = $2
   |             `- warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
24 |
25 |             dispatchGroup.leave()
[8/10] Compiling AWSLambdaSwift JSONHandlers.swift
[9/10] Compiling AWSLambdaSwift Context.swift
[10/10] Compiling AWSLambdaSwift Runtime.swift
/host/spi-builder-workspace/Sources/AWSLambdaSwift/Runtime.swift:7:26: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
  5 |
  6 | public func log(_ object: Any, flush: Bool = false) {
  7 |     fputs("\(object)\n", stderr)
    |                          `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
  8 |     if flush {
  9 |         fflush(stderr)
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/AWSLambdaSwift/Runtime.swift:9:16: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
  7 |     fputs("\(object)\n", stderr)
  8 |     if flush {
  9 |         fflush(stderr)
    |                `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 10 |     }
 11 | }
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
Build complete! (16.21s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AWSLambdaSwift",
  "name" : "AWSLambdaSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "AWSLambdaSwift",
      "targets" : [
        "AWSLambdaSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AWSLambdaSwift",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaSwift",
      "path" : "Sources/AWSLambdaSwift",
      "product_memberships" : [
        "AWSLambdaSwift"
      ],
      "sources" : [
        "CodableHandlers.swift",
        "Context.swift",
        "JSONHandlers.swift",
        "Runtime.swift",
        "RuntimeError.swift",
        "Types.swift",
        "URLSession+Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.