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 SchemaSwift, reference main (7db4c2), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 14:34:49 UTC.

Swift 6 data race errors: 2

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/khanlou/SchemaSwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/khanlou/SchemaSwift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7db4c20 add a new reserved keyword
Cloned https://github.com/khanlou/SchemaSwift.git
Revision (git rev-parse @):
7db4c200593dda367404849459baaf78532cf22f
SUCCESS checkout https://github.com/khanlou/SchemaSwift.git at main
Fetching https://github.com/IBM-Swift/BlueSSLService
Fetching https://github.com/codewinsdotcom/PostgresClientKit
Fetching https://github.com/IBM-Swift/BlueSocket.git
Fetching https://github.com/apple/swift-argument-parser
[1/1923] Fetching postgresclientkit
[59/4011] Fetching postgresclientkit, bluesslservice
[508/6953] Fetching postgresclientkit, bluesslservice, bluesocket
[1921/19306] Fetching postgresclientkit, bluesslservice, bluesocket, swift-argument-parser
Fetched https://github.com/codewinsdotcom/PostgresClientKit from cache (1.10s)
[4048/17383] Fetching bluesslservice, bluesocket, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.59s)
Fetched https://github.com/IBM-Swift/BlueSocket.git from cache (1.59s)
Computing version for https://github.com/codewinsdotcom/PostgresClientKit
Fetched https://github.com/IBM-Swift/BlueSSLService from cache (1.59s)
Computed https://github.com/codewinsdotcom/PostgresClientKit at 1.4.3 (0.70s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.67s)
Computing version for https://github.com/IBM-Swift/BlueSSLService
Computed https://github.com/IBM-Swift/BlueSSLService at 2.0.1 (0.71s)
Computing version for https://github.com/IBM-Swift/BlueSocket.git
Computed https://github.com/IBM-Swift/BlueSocket.git at 2.0.2 (0.77s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Creating working copy for https://github.com/codewinsdotcom/PostgresClientKit
Working copy of https://github.com/codewinsdotcom/PostgresClientKit resolved at 1.4.3
Creating working copy for https://github.com/IBM-Swift/BlueSSLService
Working copy of https://github.com/IBM-Swift/BlueSSLService resolved at 2.0.1
Creating working copy for https://github.com/IBM-Swift/BlueSocket.git
Working copy of https://github.com/IBM-Swift/BlueSocket.git resolved at 2.0.2
========================================
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": "schemaswift",
      "name": "SchemaSwift",
      "url": "https://github.com/khanlou/SchemaSwift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SchemaSwift",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "0.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        },
        {
          "identity": "postgresclientkit",
          "name": "PostgresClientKit",
          "url": "https://github.com/codewinsdotcom/PostgresClientKit",
          "version": "1.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PostgresClientKit",
          "dependencies": [
            {
              "identity": "bluesocket",
              "name": "Socket",
              "url": "https://github.com/Kitura/BlueSocket.git",
              "version": "2.0.4",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
              "dependencies": [
              ]
            },
            {
              "identity": "bluesslservice",
              "name": "SSLService",
              "url": "https://github.com/Kitura/BlueSSLService",
              "version": "2.0.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSSLService",
              "dependencies": [
                {
                  "identity": "bluesocket",
                  "name": "Socket",
                  "url": "https://github.com/Kitura/BlueSocket.git",
                  "version": "2.0.4",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
                  "dependencies": [
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/khanlou/SchemaSwift.git
[1/179] Fetching schemaswift
Fetched https://github.com/khanlou/SchemaSwift.git from cache (0.73s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/codewinsdotcom/PostgresClientKit from cache
Fetched https://github.com/codewinsdotcom/PostgresClientKit from cache (0.59s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.59s)
Computing version for https://github.com/codewinsdotcom/PostgresClientKit
Computed https://github.com/codewinsdotcom/PostgresClientKit at 1.5.0 (0.69s)
Fetching https://github.com/Kitura/BlueSSLService
Fetching https://github.com/Kitura/BlueSocket.git
[1/2088] Fetching bluesslservice
[22/5030] Fetching bluesslservice, bluesocket
Fetched https://github.com/Kitura/BlueSocket.git from cache (1.15s)
Fetched https://github.com/Kitura/BlueSSLService from cache (1.15s)
Computing version for https://github.com/Kitura/BlueSSLService
Computed https://github.com/Kitura/BlueSSLService at 2.0.2 (0.66s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.67s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.03s)
Creating working copy for https://github.com/codewinsdotcom/PostgresClientKit
Working copy of https://github.com/codewinsdotcom/PostgresClientKit resolved at 1.5.0
Creating working copy for https://github.com/khanlou/SchemaSwift.git
Working copy of https://github.com/khanlou/SchemaSwift.git resolved at main (7db4c20)
Creating working copy for https://github.com/Kitura/BlueSSLService
Working copy of https://github.com/Kitura/BlueSSLService resolved at 2.0.2
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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Found 2 product dependencies
  - swift-argument-parser
  - PostgresClientKit
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/khanlou/SchemaSwift.git
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
Building for debugging...
[0/12] Write sources
[6/12] Write SchemaSwift-entitlement.plist
[6/12] Write sources
[8/12] Write swift-version--7754E27361AE5C74.txt
[10/20] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/20] Emitting module ArgumentParserToolInfo
[12/55] Emitting module Socket
[13/55] Compiling ArgumentParser Flag.swift
[14/55] Compiling ArgumentParser NameSpecification.swift
[15/55] Compiling ArgumentParser Option.swift
[16/55] Compiling ArgumentParser OptionGroup.swift
[17/58] Compiling ArgumentParser CommandConfiguration.swift
[18/58] Compiling ArgumentParser EnumerableFlag.swift
[19/58] Compiling ArgumentParser ExpressibleByArgument.swift
[20/58] Compiling ArgumentParser ParsableArguments.swift
[21/58] Compiling ArgumentParser Parsed.swift
[22/58] Compiling ArgumentParser ParsedValues.swift
[23/58] Compiling ArgumentParser ParserError.swift
[24/58] Compiling ArgumentParser SplitArguments.swift
[25/58] Compiling ArgumentParser BashCompletionsGenerator.swift
[26/58] Compiling ArgumentParser CompletionsGenerator.swift
[27/58] Compiling ArgumentParser FishCompletionsGenerator.swift
[28/58] Compiling ArgumentParser ZshCompletionsGenerator.swift
[29/58] Compiling ArgumentParser SequenceExtensions.swift
[30/58] Compiling ArgumentParser StringExtensions.swift
[31/58] Compiling ArgumentParser Tree.swift
[32/58] Emitting module ArgumentParser
[33/58] Compiling ArgumentParser Argument.swift
[34/58] Compiling ArgumentParser ArgumentHelp.swift
[35/58] Compiling ArgumentParser CompletionKind.swift
[36/58] Compiling ArgumentParser Errors.swift
[37/58] Compiling ArgumentParser ArgumentSet.swift
[38/58] Compiling ArgumentParser CommandParser.swift
[39/58] Compiling ArgumentParser InputOrigin.swift
[40/58] Compiling ArgumentParser Name.swift
[41/58] Compiling ArgumentParser ParsableArgumentsValidation.swift
[42/58] Compiling ArgumentParser ParsableCommand.swift
[43/58] Compiling ArgumentParser ArgumentDecoder.swift
[44/58] Compiling ArgumentParser ArgumentDefinition.swift
[45/58] Compiling Socket Socket+Hashable.swift
[46/58] Compiling ArgumentParser MessageInfo.swift
[47/58] Compiling ArgumentParser UsageGenerator.swift
[48/58] Compiling ArgumentParser CollectionExtensions.swift
[49/58] Compiling ArgumentParser DumpHelpGenerator.swift
[50/58] Compiling ArgumentParser HelpCommand.swift
[51/58] Compiling ArgumentParser HelpGenerator.swift
[52/58] Compiling Socket Socket.swift
[53/58] Compiling Socket SocketProtocols.swift
[54/58] Compiling Socket SocketUtils.swift
[55/58] Compiling Socket Socket+Equatable.swift
[56/61] Compiling SSLService SSLService.swift
[57/61] Compiling SSLService SSLPointerTricks.swift
[58/61] Emitting module SSLService
[59/124] Compiling PostgresClientKit NoDataResponse.swift
[60/124] Compiling PostgresClientKit NoticeResponse.swift
[61/124] Compiling PostgresClientKit NotificationResponse.swift
[62/124] Compiling PostgresClientKit ParameterStatusResponse.swift
[63/124] Compiling PostgresClientKit ParseCompleteResponse.swift
[64/124] Compiling PostgresClientKit ReadyForQueryResponse.swift
[65/130] Compiling PostgresClientKit BackendKeyDataResponse.swift
[66/130] Compiling PostgresClientKit BindCompleteResponse.swift
[67/130] Compiling PostgresClientKit CloseCompleteResponse.swift
[68/130] Compiling PostgresClientKit CommandCompleteResponse.swift
[69/130] Compiling PostgresClientKit DataRowResponse.swift
[70/130] Compiling PostgresClientKit EmptyQueryResponse.swift
[71/130] Compiling PostgresClientKit ErrorResponse.swift
[72/130] Compiling PostgresClientKit Request.swift
[73/130] Compiling PostgresClientKit SASLInitialRequest.swift
[74/130] Compiling PostgresClientKit SASLRequest.swift
[75/130] Compiling PostgresClientKit SSLRequest.swift
[76/130] Compiling PostgresClientKit StartupRequest.swift
[77/130] Compiling PostgresClientKit SyncRequest.swift
[78/130] Compiling PostgresClientKit TerminateRequest.swift
[79/130] Emitting module PostgresClientKit
[80/130] Compiling PostgresClientKit Logger.swift
[81/130] Compiling PostgresClientKit Notice.swift
[82/130] Compiling PostgresClientKit Parameter.swift
[83/130] Compiling PostgresClientKit Postgres.swift
[84/130] Compiling PostgresClientKit PostgresByteA.swift
[85/130] Compiling PostgresClientKit PostgresDate.swift
[86/130] Compiling PostgresClientKit PostgresError.swift
[87/130] Compiling PostgresClientKit ColumnMetadata.swift
[88/130] Compiling PostgresClientKit Connection.swift
[89/130] Compiling PostgresClientKit ConnectionConfiguration.swift
[90/130] Compiling PostgresClientKit ConnectionDelegate.swift
[91/130] Compiling PostgresClientKit ConnectionPool.swift
[92/130] Compiling PostgresClientKit ConnectionPoolConfiguration.swift
[93/130] Compiling PostgresClientKit ConnectionPoolMetrics.swift
[94/130] Compiling PostgresClientKit Response.swift
[95/130] Compiling PostgresClientKit RowDescriptionResponse.swift
[96/130] Compiling PostgresClientKit Row.swift
[97/130] Compiling PostgresClientKit SASLPrep.swift
[98/130] Compiling PostgresClientKit SCRAMSHA256Authenticator.swift
[99/130] Compiling PostgresClientKit Statement.swift
[100/130] Compiling PostgresClientKit ClosePortalRequest.swift
[101/130] Compiling PostgresClientKit CloseStatementRequest.swift
[102/130] Compiling PostgresClientKit DescribePortalRequest.swift
[103/130] Compiling PostgresClientKit ExecuteRequest.swift
[104/130] Compiling PostgresClientKit FlushRequest.swift
[105/130] Compiling PostgresClientKit ParseRequest.swift
[106/130] Compiling PostgresClientKit PasswordMessageRequest.swift
[107/130] Compiling PostgresClientKit Credential.swift
[108/130] Compiling PostgresClientKit Crypto.swift
[109/130] Compiling PostgresClientKit Cursor.swift
[110/130] Compiling PostgresClientKit ISO8601.swift
[111/130] Compiling PostgresClientKit LogHandler.swift
[112/130] Compiling PostgresClientKit LogLevel.swift
[113/130] Compiling PostgresClientKit LogRecord.swift
[114/130] Compiling PostgresClientKit PostgresTime.swift
[115/130] Compiling PostgresClientKit PostgresTimeWithTimeZone.swift
[116/130] Compiling PostgresClientKit PostgresTimestamp.swift
[117/130] Compiling PostgresClientKit PostgresTimestampWithTimeZone.swift
[118/130] Compiling PostgresClientKit PostgresValue.swift
[119/130] Compiling PostgresClientKit PostgresValueConvertible.swift
[120/130] Compiling PostgresClientKit BindRequest.swift
[121/130] Compiling PostgresClientKit AuthenticationCleartextPasswordResponse.swift
[122/130] Compiling PostgresClientKit AuthenticationMD5PasswordResponse.swift
[123/130] Compiling PostgresClientKit AuthenticationOKResponse.swift
[124/130] Compiling PostgresClientKit AuthenticationResponse.swift
[125/130] Compiling PostgresClientKit AuthenticationSASLContinueResponse.swift
[126/130] Compiling PostgresClientKit AuthenticationSASLFinalResponse.swift
[127/130] Compiling PostgresClientKit AuthenticationSASLResponse.swift
[128/136] Compiling SchemaSwiftLibrary Table.swift
[129/136] Compiling SchemaSwiftLibrary Overrides.swift
[130/136] Compiling SchemaSwiftLibrary Enum.swift
[131/136] Compiling SchemaSwiftLibrary Column.swift
[132/136] Emitting module SchemaSwiftLibrary
/Users/admin/builder/spi-builder-workspace/Sources/SchemaSwiftLibrary/Model/Inflectors.swift:97:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Pluralizer' may have shared mutable state; this is an error in the Swift 6 language mode
 93 | }
 94 |
 95 | class Pluralizer {
    |       `- note: class 'Pluralizer' does not conform to the 'Sendable' protocol
 96 |
 97 |     static let shared = Pluralizer()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Pluralizer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'shared' 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
 98 |
 99 |     private let pluralRules: [InflectorRule]
[133/136] Compiling SchemaSwiftLibrary Inflectors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SchemaSwiftLibrary/Model/Inflectors.swift:97:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Pluralizer' may have shared mutable state; this is an error in the Swift 6 language mode
 93 | }
 94 |
 95 | class Pluralizer {
    |       `- note: class 'Pluralizer' does not conform to the 'Sendable' protocol
 96 |
 97 |     static let shared = Pluralizer()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Pluralizer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'shared' 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
 98 |
 99 |     private let pluralRules: [InflectorRule]
[134/139] Compiling SchemaSwift Database.swift
[135/139] Compiling SchemaSwift main.swift
/Users/admin/builder/spi-builder-workspace/Sources/SchemaSwift/main.swift:6:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | struct SchemaSwift: ParsableCommand {
  6 |     static var configuration = CommandConfiguration(
    |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'configuration' 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
  7 |         abstract: "A utility for generating Swift row structs from a Postgres schema.",
  8 |         version: "1.0.0",
[136/139] Emitting module SchemaSwift
/Users/admin/builder/spi-builder-workspace/Sources/SchemaSwift/main.swift:6:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 |
  5 | struct SchemaSwift: ParsableCommand {
  6 |     static var configuration = CommandConfiguration(
    |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'configuration' 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
  7 |         abstract: "A utility for generating Swift row structs from a Postgres schema.",
  8 |         version: "1.0.0",
[136/139] Write Objects.LinkFileList
[137/139] Linking SchemaSwift
[138/139] Applying SchemaSwift
Build complete! (15.39s)
warning: 'bluesslservice': 'bluesslservice' dependency on 'https://github.com/Kitura/BlueSocket.git' conflicts with dependency on 'https://github.com/IBM-Swift/BlueSocket.git' which has the same identity 'bluesocket'. this will be escalated to an error in future versions of SwiftPM.
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "postgresclientkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/codewinsdotcom/PostgresClientKit"
    }
  ],
  "manifest_display_name" : "SchemaSwift",
  "name" : "SchemaSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SchemaSwift",
      "targets" : [
        "SchemaSwift"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "SchemaSwiftLibrary",
      "targets" : [
        "SchemaSwiftLibrary"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SchemaSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "SchemaSwiftTests",
      "path" : "Tests/SchemaSwiftTests",
      "sources" : [
        "InflectionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SchemaSwiftLibrary"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SchemaSwiftLibrary",
      "module_type" : "SwiftTarget",
      "name" : "SchemaSwiftLibrary",
      "path" : "Sources/SchemaSwiftLibrary",
      "product_dependencies" : [
        "ArgumentParser",
        "PostgresClientKit"
      ],
      "product_memberships" : [
        "SchemaSwift",
        "SchemaSwiftLibrary"
      ],
      "sources" : [
        "Model/Column.swift",
        "Model/Enum.swift",
        "Model/Inflectors.swift",
        "Model/Overrides.swift",
        "Model/Table.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SchemaSwift",
      "module_type" : "SwiftTarget",
      "name" : "SchemaSwift",
      "path" : "Sources/SchemaSwift",
      "product_memberships" : [
        "SchemaSwift"
      ],
      "sources" : [
        "Database.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "SchemaSwiftLibrary"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.3"
}
Done.