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 SwiftAWSSignatureV4, reference master (c66f2d), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 10:35:08 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crspybits/SwiftAWSSignatureV4.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/crspybits/SwiftAWSSignatureV4
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c66f2db Updated docs.
Cloned https://github.com/crspybits/SwiftAWSSignatureV4.git
Revision (git rev-parse @):
c66f2db1211ad1969e3d11791b9de62361c78f45
SUCCESS checkout https://github.com/crspybits/SwiftAWSSignatureV4.git at master
Fetching https://github.com/IBM-Swift/BlueCryptor.git
[1/1640] Fetching bluecryptor
Fetched https://github.com/IBM-Swift/BlueCryptor.git from cache (0.88s)
Computing version for https://github.com/IBM-Swift/BlueCryptor.git
Computed https://github.com/IBM-Swift/BlueCryptor.git at 1.0.32 (0.60s)
Creating working copy for https://github.com/IBM-Swift/BlueCryptor.git
Working copy of https://github.com/IBM-Swift/BlueCryptor.git resolved at 1.0.32
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftawssignaturev4",
      "name": "SwiftAWSSignatureV4",
      "url": "https://github.com/crspybits/SwiftAWSSignatureV4.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftAWSSignatureV4",
      "dependencies": [
        {
          "identity": "bluecryptor",
          "name": "Cryptor",
          "url": "https://github.com/IBM-Swift/BlueCryptor.git",
          "version": "1.0.200",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueCryptor",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/crspybits/SwiftAWSSignatureV4.git
[1/209] Fetching swiftawssignaturev4
Fetched https://github.com/crspybits/SwiftAWSSignatureV4.git from cache (0.69s)
Fetching https://github.com/IBM-Swift/BlueCryptor.git from cache
Fetched https://github.com/IBM-Swift/BlueCryptor.git from cache (0.46s)
Computing version for https://github.com/IBM-Swift/BlueCryptor.git
Computed https://github.com/IBM-Swift/BlueCryptor.git at 1.0.200 (0.54s)
Creating working copy for https://github.com/IBM-Swift/BlueCryptor.git
Working copy of https://github.com/IBM-Swift/BlueCryptor.git resolved at 1.0.200
Creating working copy for https://github.com/crspybits/SwiftAWSSignatureV4.git
Working copy of https://github.com/crspybits/SwiftAWSSignatureV4.git resolved at master (c66f2db)
warning: '.resolve-product-dependencies': dependency 'swiftawssignaturev4' is not used by any target
Found 1 product dependencies
  - Cryptor
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/crspybits/SwiftAWSSignatureV4.git
{
  "dependencies" : [
    {
      "identity" : "bluecryptor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/IBM-Swift/BlueCryptor.git"
    }
  ],
  "manifest_display_name" : "SwiftAWSSignatureV4",
  "name" : "SwiftAWSSignatureV4",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftAWSSignatureV4",
      "targets" : [
        "SwiftAWSSignatureV4"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SwiftAWSSignatureV4Tests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAWSSignatureV4Tests",
      "path" : "Tests/SwiftAWSSignatureV4Tests",
      "sources" : [
        "HexTests.swift",
        "SigningTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAWSSignatureV4"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAWSSignatureV4",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAWSSignatureV4",
      "path" : "Sources/SwiftAWSSignatureV4",
      "product_dependencies" : [
        "Cryptor"
      ],
      "product_memberships" : [
        "SwiftAWSSignatureV4"
      ],
      "sources" : [
        "AWSAccount.swift",
        "Chunking.swift",
        "String+Extensions.swift",
        "URLRequest+AWSAccountSigning.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/14] Compiling Cryptor SSLPointerTricks.swift
[5/14] Compiling Cryptor Updatable.swift
[6/14] Compiling Cryptor Random.swift
[7/14] Compiling Cryptor Status.swift
[8/14] Compiling Cryptor KeyDerivation.swift
[9/14] Compiling Cryptor StreamCryptor.swift
[10/14] Compiling Cryptor Crypto.swift
[11/14] Compiling Cryptor Cryptor.swift
[12/14] Compiling Cryptor HMAC.swift
[13/14] Emitting module Cryptor
[14/14] Compiling Cryptor Digest.swift
[15/15] Compiling Cryptor Utilities.swift
[16/20] Compiling SwiftAWSSignatureV4 String+Extensions.swift
[17/20] Compiling SwiftAWSSignatureV4 URLRequest+AWSAccountSigning.swift
[18/20] Compiling SwiftAWSSignatureV4 AWSAccount.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/AWSAccount.swift:44:13: warning: static property 'calendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | 	}
43 |
44 | 	static var calendar:Calendar = { ()->(Calendar) in
   |             |- warning: static property 'calendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'calendar' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'calendar' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | 		var aCalendar = Calendar(identifier: .gregorian)
46 | 		//TODO: can we do this on linux?
[19/20] Emitting module SwiftAWSSignatureV4
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/AWSAccount.swift:44:13: warning: static property 'calendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | 	}
43 |
44 | 	static var calendar:Calendar = { ()->(Calendar) in
   |             |- warning: static property 'calendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'calendar' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'calendar' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | 		var aCalendar = Calendar(identifier: .gregorian)
46 | 		//TODO: can we do this on linux?
[20/20] Compiling SwiftAWSSignatureV4 Chunking.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:199:5: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | 			,let (runloop, mode) = scheduledRunLoopsMode {
198 | 			delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
199 | 				runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
    |     `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | 			})
201 | 		}
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
 1 | open class RunLoop : NSObject {
   |            `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
 2 |     open class var current: RunLoop { get }
 3 |     @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:199:87: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
    |                    `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | 	static let readBufferSize:Int = 8192
    :
197 | 			,let (runloop, mode) = scheduledRunLoopsMode {
198 | 			delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
199 | 				runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
    |                                                                                       `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | 			})
201 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:205:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | 			if let (runloop, mode) = scheduledRunLoopsMode {
204 | 				delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
205 | 					runloop.perform(#selector(ChunkedStream.triggerSendingEnd), target: self, argument: nil, order: 1, modes: [mode])
    |      `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | 				})
207 | 			}
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
 1 | open class RunLoop : NSObject {
   |            `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
 2 |     open class var current: RunLoop { get }
 3 |     @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:205:74: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
    |                    `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | 	static let readBufferSize:Int = 8192
    :
203 | 			if let (runloop, mode) = scheduledRunLoopsMode {
204 | 				delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
205 | 					runloop.perform(#selector(ChunkedStream.triggerSendingEnd), target: self, argument: nil, order: 1, modes: [mode])
    |                                                                          `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | 				})
207 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:212:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | 			if let (runloop, mode) = scheduledRunLoopsMode {
211 | 				delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
212 | 					runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 1, modes: [mode])
    |      `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 | 				})
214 | 			}
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
 1 | open class RunLoop : NSObject {
   |            `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
 2 |     open class var current: RunLoop { get }
 3 |     @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:212:88: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
    |                    `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | 	static let readBufferSize:Int = 8192
    :
210 | 			if let (runloop, mode) = scheduledRunLoopsMode {
211 | 				delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
212 | 					runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 1, modes: [mode])
    |                                                                                        `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 | 				})
214 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:363:6: warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 | 			if let (runloop, mode) = scheduledRunLoopsMode {
362 | 				delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
363 | 					runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
    |      `- warning: capture of 'runloop' with non-sendable type 'RunLoop' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 | 				})
365 | 			}
Foundation.RunLoop:1:12: note: class 'RunLoop' does not conform to the 'Sendable' protocol
 1 | open class RunLoop : NSObject {
   |            `- note: class 'RunLoop' does not conform to the 'Sendable' protocol
 2 |     open class var current: RunLoop { get }
 3 |     @available(swift, obsoleted: 3, renamed: "current")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAWSSignatureV4/Chunking.swift:363:88: warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |
146 |
147 | @objc public class ChunkedStream : InputStream, StreamDelegate {
    |                    `- note: class 'ChunkedStream' does not conform to the 'Sendable' protocol
148 |
149 | 	static let readBufferSize:Int = 8192
    :
361 | 			if let (runloop, mode) = scheduledRunLoopsMode {
362 | 				delayQueue.asyncAfter(wallDeadline: .now() + 0.00001, execute: {
363 | 					runloop.perform(#selector(ChunkedStream.triggerSendingHasBytesAvailable), target: self, argument: nil, order: 0, modes: [mode])
    |                                                                                        `- warning: capture of 'self' with non-sendable type 'ChunkedStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 | 				})
365 | 			}
Build complete! (14.65s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "bluecryptor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/IBM-Swift/BlueCryptor.git"
    }
  ],
  "manifest_display_name" : "SwiftAWSSignatureV4",
  "name" : "SwiftAWSSignatureV4",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftAWSSignatureV4",
      "targets" : [
        "SwiftAWSSignatureV4"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SwiftAWSSignatureV4Tests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAWSSignatureV4Tests",
      "path" : "Tests/SwiftAWSSignatureV4Tests",
      "sources" : [
        "HexTests.swift",
        "SigningTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAWSSignatureV4"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAWSSignatureV4",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAWSSignatureV4",
      "path" : "Sources/SwiftAWSSignatureV4",
      "product_dependencies" : [
        "Cryptor"
      ],
      "product_memberships" : [
        "SwiftAWSSignatureV4"
      ],
      "sources" : [
        "AWSAccount.swift",
        "Chunking.swift",
        "String+Extensions.swift",
        "URLRequest+AWSAccountSigning.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.