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.1 for Linux on 27 Apr 2025 19:31:19 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/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.1
Building package at path:  $PWD
https://github.com/Kitura/Swift-SMTP.git
https://github.com/Kitura/Swift-SMTP.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
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
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueCryptor.git
[1/771] Fetching loggerapi
[171/2425] Fetching loggerapi, bluecryptor
[2426/5367] Fetching loggerapi, bluecryptor, bluesocket
[2603/7444] Fetching loggerapi, bluecryptor, bluesocket, bluesslservice
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.34s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.37s)
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.38s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.38s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.97s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.37s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.94s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.20s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (0.76s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (2.55s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.87s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.68s)
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/Kitura/BlueCryptor.git
Working copy of https://github.com/Kitura/BlueCryptor.git resolved at 2.0.2
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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
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/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 2.0.2
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/29] Emitting module Socket
[9/29] Emitting module Cryptor
[10/30] Compiling Logging MetadataProvider.swift
[11/30] Emitting module Logging
[12/30] Compiling Logging Locks.swift
[13/30] Compiling Logging LogHandler.swift
[14/30] Compiling Logging Logging.swift
[16/31] Compiling Socket Socket+Equatable.swift
[17/31] Compiling Socket Socket+Hashable.swift
[18/31] Compiling Cryptor Utilities.swift
[19/31] Compiling Cryptor Updatable.swift
[20/31] Compiling Cryptor StreamCryptor.swift
[21/31] Compiling Cryptor Crypto.swift
[22/31] Compiling Cryptor Cryptor.swift
[23/31] Compiling Cryptor Digest.swift
[24/31] Compiling Cryptor HMAC.swift
[25/31] Compiling Cryptor SSLPointerTricks.swift
[26/31] Compiling Cryptor KeyDerivation.swift
[27/31] Compiling Cryptor Random.swift
[28/31] Compiling Cryptor Status.swift
[29/34] Compiling Socket SocketProtocols.swift
[30/34] Compiling Socket SocketUtils.swift
[32/34] Emitting module LoggerAPI
[33/34] Compiling LoggerAPI Logger.swift
[34/35] Compiling Socket Socket.swift
[37/39] Compiling SSLService SSLPointerTricks.swift
[38/39] Emitting module SSLService
[39/39] Compiling SSLService SSLService.swift
[41/53] Compiling SwiftSMTP AuthMethod.swift
[42/53] Compiling SwiftSMTP Command.swift
[43/53] 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: add '@MainActor' to make let 'cache' part of global actor 'MainActor'
   |     `- 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/53] 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: add '@MainActor' to make let 'cache' part of global actor 'MainActor'
   |     `- 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] 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: add '@MainActor' to make let 'cache' part of global actor 'MainActor'
   |     `- 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
[46/54] Compiling SwiftSMTP Attachment.swift
[47/54] Compiling SwiftSMTP AuthEncoder.swift
[48/54] Compiling SwiftSMTP SMTPError.swift
[49/54] Compiling SwiftSMTP SMTPSocket.swift
[50/54] Compiling SwiftSMTP Response.swift
[51/54] Compiling SwiftSMTP SMTP.swift
[52/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 |     }
[53/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 |     }
[54/54] Compiling SwiftSMTP TLSConfiguration.swift
Build complete! (27.76s)
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.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.