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 SwiftSMTP, reference master (3eaa80), with Swift 6.0 for Linux on 3 Apr 2025 07:53:15 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.60.1
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.0
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-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:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
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/BlueCryptor.git
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/BlueSSLService.git
[1/771] Fetching loggerapi
[379/3713] Fetching loggerapi, bluesocket
[1537/5790] Fetching loggerapi, bluesocket, bluesslservice
[2441/7441] Fetching loggerapi, bluesocket, bluesslservice, bluecryptor
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.23s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.23s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.26s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.26s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.50s)
Fetching https://github.com/apple/swift-log.git
[1/3825] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.29s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.50s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.16s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (0.50s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.86s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.47s)
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/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.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/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] Compiling Cryptor SSLPointerTricks.swift
[9/30] Compiling Logging MetadataProvider.swift
[10/30] Emitting module Logging
[11/30] Compiling Logging LogHandler.swift
[12/30] Compiling Logging Locks.swift
[13/30] Compiling Logging Logging.swift
[15/33] Emitting module LoggerAPI
[16/33] Compiling Cryptor Utilities.swift
[17/33] Compiling Socket SocketUtils.swift
[18/33] Compiling LoggerAPI Logger.swift
[19/34] Compiling Socket Socket.swift
[20/34] Compiling Socket SocketProtocols.swift
[22/34] Compiling Cryptor Updatable.swift
[23/34] Compiling Cryptor StreamCryptor.swift
[24/34] Compiling Cryptor KeyDerivation.swift
[25/34] Compiling Cryptor Random.swift
[26/34] Compiling Cryptor Status.swift
[27/34] Compiling Socket Socket+Equatable.swift
[28/34] Emitting module Socket
[29/34] Compiling Socket Socket+Hashable.swift
[30/35] Emitting module Cryptor
[31/35] Compiling Cryptor Crypto.swift
[32/35] Compiling Cryptor Cryptor.swift
[33/35] Compiling Cryptor Digest.swift
[34/35] Compiling Cryptor HMAC.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: 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/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: 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] 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
[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! (19.92s)
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:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.