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 SwiftSMTP, reference 6.0.0 (4b7666), with Swift 6.0 for Linux on 28 Nov 2024 11:31:37 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/Kitura/Swift-SMTP.git
Reference: 6.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/Kitura/Swift-SMTP
 * tag               6.0.0      -> FETCH_HEAD
HEAD is now at 4b7666b Misc dependency update (#125)
Cloned https://github.com/Kitura/Swift-SMTP.git
Revision (git rev-parse @):
4b7666bb8cee33f0cb367786af17b9a2ebb63047
SUCCESS checkout https://github.com/Kitura/Swift-SMTP.git at 6.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Kitura/Swift-SMTP.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/BlueCryptor.git
[1/1640] Fetching bluecryptor
[116/2411] Fetching bluecryptor, loggerapi
[2412/5353] Fetching bluecryptor, loggerapi, bluesocket
[2795/7441] Fetching bluecryptor, loggerapi, bluesocket, bluesslservice
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.26s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.32s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.33s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.33s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.44s)
Fetching https://github.com/apple/swift-log.git
[1/3708] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.27s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.44s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.18s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (0.42s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.93s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.43s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.37s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 2.0.2
Creating working copy for https://github.com/Kitura/BlueCryptor.git
Working copy of https://github.com/Kitura/BlueCryptor.git resolved at 2.0.2
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/29] Emitting module Logging
[9/29] Compiling Cryptor SSLPointerTricks.swift
[10/30] Compiling Logging MetadataProvider.swift
[11/30] Compiling Logging LogHandler.swift
[12/30] Compiling Logging Logging.swift
[13/30] Compiling Logging Locks.swift
[15/33] Compiling Cryptor Updatable.swift
[16/33] Compiling Socket SocketProtocols.swift
[17/33] Compiling Socket Socket.swift
[18/33] Compiling Socket SocketUtils.swift
[19/33] Compiling Socket Socket+Equatable.swift
[20/33] Compiling Socket Socket+Hashable.swift
[21/33] Emitting module Socket
[23/34] Emitting module Cryptor
[24/34] Compiling Cryptor StreamCryptor.swift
[25/34] Compiling Cryptor Status.swift
[26/34] Compiling Cryptor Crypto.swift
[27/34] Compiling Cryptor Cryptor.swift
[28/34] Compiling Cryptor Utilities.swift
[29/34] Compiling Cryptor KeyDerivation.swift
[30/34] Compiling Cryptor Random.swift
[31/34] Compiling Cryptor Digest.swift
[32/34] Compiling Cryptor HMAC.swift
[34/38] Compiling LoggerAPI Logger.swift
[35/38] Emitting module LoggerAPI
[37/39] Emitting module SSLService
[38/39] Compiling SSLService SSLPointerTricks.swift
[39/39] Compiling SSLService SSLService.swift
[41/53] Compiling SwiftSMTP Response.swift
[42/53] Compiling SwiftSMTP SMTP.swift
[43/54] Compiling SwiftSMTP Common.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:24:5: warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
   |     |- warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'cache' 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
25 | let CRLF = "\r\n"
26 |
Foundation.NSCache:1:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
 1 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
   |            `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
 2 |     open var name: String
 3 |     open var totalCostLimit: Int
[44/54] Compiling SwiftSMTP DataSender.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:24:5: warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
   |     |- warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'cache' 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
25 | let CRLF = "\r\n"
26 |
Foundation.NSCache:1:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
 1 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
   |            `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
 2 |     open var name: String
 3 |     open var totalCostLimit: Int
[45/54] Compiling SwiftSMTP AuthMethod.swift
[46/54] Compiling SwiftSMTP Command.swift
[47/54] Compiling SwiftSMTP Attachment.swift
[48/54] Compiling SwiftSMTP AuthEncoder.swift
[49/54] Emitting module SwiftSMTP
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:24:5: warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
   |     |- warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'cache' 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
25 | let CRLF = "\r\n"
26 |
Foundation.NSCache:1:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
 1 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
   |            `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
 2 |     open var name: String
 3 |     open var totalCostLimit: Int
[50/54] Compiling SwiftSMTP Mail.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:52:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
 29 |
 30 | class MailSender {
    |       `- note: class 'MailSender' does not conform to the 'Sendable' protocol
 31 |     private var socket: SMTPSocket
 32 |     private var mailsToSend: [Mail]
    :
 50 |     func send() {
 51 |         DispatchQueue.global().async {
 52 |             self.sendNext()
    |             `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |         }
 54 |     }
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:80:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
 29 |
 30 | class MailSender {
    |       `- note: class 'MailSender' does not conform to the 'Sendable' protocol
 31 |     private var socket: SMTPSocket
 32 |     private var mailsToSend: [Mail]
    :
 78 |         }
 79 |         DispatchQueue.global().async {
 80 |             self.sendNext()
    |             `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 81 |         }
 82 |     }
[51/54] Compiling SwiftSMTP MailSender.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:52:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
 29 |
 30 | class MailSender {
    |       `- note: class 'MailSender' does not conform to the 'Sendable' protocol
 31 |     private var socket: SMTPSocket
 32 |     private var mailsToSend: [Mail]
    :
 50 |     func send() {
 51 |         DispatchQueue.global().async {
 52 |             self.sendNext()
    |             `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |         }
 54 |     }
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:80:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
 29 |
 30 | class MailSender {
    |       `- note: class 'MailSender' does not conform to the 'Sendable' protocol
 31 |     private var socket: SMTPSocket
 32 |     private var mailsToSend: [Mail]
    :
 78 |         }
 79 |         DispatchQueue.global().async {
 80 |             self.sendNext()
    |             `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 81 |         }
 82 |     }
[52/54] Compiling SwiftSMTP SMTPError.swift
[53/54] Compiling SwiftSMTP SMTPSocket.swift
[54/54] Compiling SwiftSMTP TLSConfiguration.swift
Build complete! (27.47s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "bluesocket",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/BlueSocket.git"
    },
    {
      "identity" : "bluesslservice",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/BlueSSLService.git"
    },
    {
      "identity" : "bluecryptor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/BlueCryptor.git"
    },
    {
      "identity" : "loggerapi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.9.200",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/LoggerAPI.git"
    }
  ],
  "manifest_display_name" : "SwiftSMTP",
  "name" : "SwiftSMTP",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftSMTP",
      "targets" : [
        "SwiftSMTP"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSMTPTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSMTPTests",
      "path" : "Tests/SwiftSMTPTests",
      "sources" : [
        "Constant.swift",
        "TestAttachment.swift",
        "TestAuthEncoder.swift",
        "TestDataSender.swift",
        "TestMailSender.swift",
        "TestMiscellaneous.swift",
        "TestSMTPSocket.swift",
        "TestTLSMode.swift"
      ],
      "target_dependencies" : [
        "SwiftSMTP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftSMTP",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSMTP",
      "path" : "Sources/SwiftSMTP",
      "product_dependencies" : [
        "Socket",
        "SSLService",
        "Cryptor",
        "LoggerAPI"
      ],
      "product_memberships" : [
        "SwiftSMTP"
      ],
      "sources" : [
        "Attachment.swift",
        "AuthEncoder.swift",
        "AuthMethod.swift",
        "Command.swift",
        "Common.swift",
        "DataSender.swift",
        "Mail.swift",
        "MailSender.swift",
        "Response.swift",
        "SMTP.swift",
        "SMTPError.swift",
        "SMTPSocket.swift",
        "TLSConfiguration.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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.