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 master (3eaa80), with Swift 6.1 for Linux on 27 Apr 2025 19:31:06 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3eaa80f Use `LoggerAPI` debug logging instead of `print` in `DataSender` (#140)
Cloned https://github.com/Kitura/Swift-SMTP.git
Revision (git rev-parse @):
3eaa80f5dbac5a043fd42da6306449a9b0cd8a3d
SUCCESS checkout https://github.com/Kitura/Swift-SMTP.git at master
========================================
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-4609320-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/BlueCryptor.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueSocket.git
[1/2942] Fetching bluesocket
[855/3713] Fetching bluesocket, loggerapi
[3105/5367] Fetching bluesocket, loggerapi, bluecryptor
[3644/7444] Fetching bluesocket, loggerapi, bluecryptor, bluesslservice
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.46s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.46s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.49s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.49s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (1.26s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.52s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (1.38s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.43s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (1.34s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (2.35s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.49s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.43s)
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/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/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 2.0.2
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
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/29] Emitting module Cryptor
[9/30] Compiling Logging MetadataProvider.swift
[10/30] Compiling Logging LogHandler.swift
[11/30] Compiling Logging Logging.swift
[12/30] Compiling Logging Locks.swift
[13/30] Emitting module Logging
[14/31] Compiling Socket SocketUtils.swift
[15/31] Compiling Socket SocketProtocols.swift
[16/31] Emitting module Socket
[17/31] Compiling Cryptor Updatable.swift
[18/31] Compiling Cryptor Utilities.swift
[20/31] Compiling Cryptor SSLPointerTricks.swift
[21/31] Compiling Cryptor Digest.swift
[22/31] Compiling Cryptor HMAC.swift
[23/31] Compiling Cryptor KeyDerivation.swift
[24/31] Compiling Cryptor Random.swift
[25/31] Compiling Cryptor Crypto.swift
[26/31] Compiling Cryptor Cryptor.swift
[27/31] Compiling Cryptor StreamCryptor.swift
[28/31] Compiling Cryptor Status.swift
[30/34] Emitting module LoggerAPI
[31/34] Compiling Socket Socket.swift
[32/34] Compiling Socket Socket+Hashable.swift
[33/34] Compiling Socket Socket+Equatable.swift
[35/35] Compiling LoggerAPI Logger.swift
[37/39] Compiling SSLService SSLPointerTricks.swift
[38/39] Emitting module SSLService
[39/39] Compiling SSLService SSLService.swift
[41/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
[42/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
[43/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
[44/54] Compiling SwiftSMTP AuthMethod.swift
[45/54] Compiling SwiftSMTP Command.swift
[46/54] Compiling SwiftSMTP Attachment.swift
[47/54] Compiling SwiftSMTP AuthEncoder.swift
[48/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 |     }
[49/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 |     }
[50/54] Compiling SwiftSMTP SMTPError.swift
[51/54] Compiling SwiftSMTP Response.swift
[52/54] Compiling SwiftSMTP SMTP.swift
[53/54] Compiling SwiftSMTP SMTPSocket.swift
[54/54] Compiling SwiftSMTP TLSConfiguration.swift
Build complete! (20.29s)
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.