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 PostgREST, reference master (7ab9a3), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 04:54:03 UTC.

Swift 6 data race errors: 1

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase-community/postgrest-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/supabase-community/postgrest-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7ab9a30 Update README.md
Cloned https://github.com/supabase-community/postgrest-swift.git
Revision (git rev-parse @):
7ab9a30af9ca6235c6b4131774f0c5ee370716e5
SUCCESS checkout https://github.com/supabase-community/postgrest-swift.git at master
Fetching https://github.com/binaryscraping/GetExtensions
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/kean/Get
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/33] Fetching getextensions
[28/2368] Fetching getextensions, get
[75/14815] Fetching getextensions, get, swift-snapshot-testing
[6597/81499] Fetching getextensions, get, swift-snapshot-testing, swift-syntax
Fetched https://github.com/binaryscraping/GetExtensions from cache (3.35s)
Fetched https://github.com/kean/Get from cache (3.35s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.35s)
Fetched https://github.com/apple/swift-syntax.git from cache (3.35s)
Computing version for https://github.com/binaryscraping/GetExtensions
Computed https://github.com/binaryscraping/GetExtensions at 1.0.0 (0.56s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.6 (0.56s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.14.0 (0.55s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.70s)
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.1.6
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.14.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
Creating working copy for https://github.com/binaryscraping/GetExtensions
Working copy of https://github.com/binaryscraping/GetExtensions resolved at 1.0.0
========================================
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": "postgrest-swift",
      "name": "PostgREST",
      "url": "https://github.com/supabase-community/postgrest-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/postgrest-swift",
      "dependencies": [
        {
          "identity": "get",
          "name": "Get",
          "url": "https://github.com/kean/Get",
          "version": "2.2.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Get",
          "dependencies": [
          ]
        },
        {
          "identity": "getextensions",
          "name": "GetExtensions",
          "url": "https://github.com/binaryscraping/GetExtensions",
          "version": "1.0.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GetExtensions",
          "dependencies": [
            {
              "identity": "get",
              "name": "Get",
              "url": "https://github.com/kean/Get",
              "version": "2.2.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Get",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/supabase-community/postgrest-swift.git
[1/1314] Fetching postgrest-swift
Fetched https://github.com/supabase-community/postgrest-swift.git from cache (0.88s)
Fetching https://github.com/kean/Get from cache
Fetching https://github.com/binaryscraping/GetExtensions from cache
Fetched https://github.com/kean/Get from cache (0.48s)
Fetched https://github.com/binaryscraping/GetExtensions from cache (0.48s)
Computing version for https://github.com/binaryscraping/GetExtensions
Computed https://github.com/binaryscraping/GetExtensions at 1.0.0 (0.02s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.2.1 (0.02s)
Creating working copy for https://github.com/binaryscraping/GetExtensions
Working copy of https://github.com/binaryscraping/GetExtensions resolved at 1.0.0
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.2.1
Creating working copy for https://github.com/supabase-community/postgrest-swift.git
Working copy of https://github.com/supabase-community/postgrest-swift.git resolved at master (7ab9a30)
warning: '.resolve-product-dependencies': dependency 'postgrest-swift' is not used by any target
Found 2 product dependencies
  - Get
  - GetExtensions
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/supabase-community/postgrest-swift.git
{
  "dependencies" : [
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.8.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing"
    },
    {
      "identity" : "get",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.4",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kean/Get"
    },
    {
      "identity" : "getextensions",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/binaryscraping/GetExtensions"
    }
  ],
  "manifest_display_name" : "PostgREST",
  "name" : "PostgREST",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "PostgREST",
      "targets" : [
        "PostgREST"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PostgRESTTests",
      "module_type" : "SwiftTarget",
      "name" : "PostgRESTTests",
      "path" : "Tests/PostgRESTTests",
      "product_dependencies" : [
        "SnapshotTesting"
      ],
      "sources" : [
        "BuildURLRequestTests.swift",
        "URLQueryRepresentableTests.swift"
      ],
      "target_dependencies" : [
        "PostgREST"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PostgRESTIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "PostgRESTIntegrationTests",
      "path" : "Tests/PostgRESTIntegrationTests",
      "sources" : [
        "IntegrationTests.swift"
      ],
      "target_dependencies" : [
        "PostgREST"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PostgREST",
      "module_type" : "SwiftTarget",
      "name" : "PostgREST",
      "path" : "Sources/PostgREST",
      "product_dependencies" : [
        "Get",
        "GetExtensions"
      ],
      "product_memberships" : [
        "PostgREST"
      ],
      "sources" : [
        "CountOption.swift",
        "PostgrestBuilder.swift",
        "PostgrestClient.swift",
        "PostgrestError.swift",
        "PostgrestFilterBuilder.swift",
        "PostgrestQueryBuilder.swift",
        "PostgrestResponse.swift",
        "PostgrestReturningOptions.swift",
        "PostgrestRpcBuilder.swift",
        "PostgrestTransformBuilder.swift",
        "TextSearchType.swift",
        "URLQueryRepresentable.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/10] Compiling Get Response.swift
[6/10] Compiling Get APIClientDelegate.swift
[7/10] Compiling Get APIClient.swift
[8/10] Compiling Get DataLoader.swift
[9/10] Emitting module Get
[10/10] Compiling Get Request.swift
[11/12] Emitting module GetExtensions
[12/12] Compiling GetExtensions MultiAPIClientDelegate.swift
[13/25] Compiling PostgREST TextSearchType.swift
[14/26] Compiling PostgREST URLQueryRepresentable.swift
[15/26] Compiling PostgREST PostgrestResponse.swift
[16/26] Compiling PostgREST PostgrestReturningOptions.swift
[17/26] Compiling PostgREST PostgrestRpcBuilder.swift
[18/26] Compiling PostgREST PostgrestTransformBuilder.swift
[19/26] Compiling PostgREST Version.swift
[20/26] Compiling PostgREST PostgrestFilterBuilder.swift
[21/26] Compiling PostgREST PostgrestQueryBuilder.swift
[22/26] Compiling PostgREST CountOption.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestBuilder.swift:63:41: warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 56 |
 57 |   @discardableResult
 58 |   public func execute<T: Decodable>(
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 59 |     head: Bool = false,
 60 |     count: CountOption? = nil
 61 |   ) async throws -> PostgrestResponse<T> {
 62 |     adaptRequest(head: head, count: count)
 63 |     let response = try await client.api.send(request.withResponse(T.self))
    |                                         `- warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 64 |     return PostgrestResponse(underlyingResponse: response)
 65 |   }
[23/26] Compiling PostgREST PostgrestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestBuilder.swift:63:41: warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 56 |
 57 |   @discardableResult
 58 |   public func execute<T: Decodable>(
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 59 |     head: Bool = false,
 60 |     count: CountOption? = nil
 61 |   ) async throws -> PostgrestResponse<T> {
 62 |     adaptRequest(head: head, count: count)
 63 |     let response = try await client.api.send(request.withResponse(T.self))
    |                                         `- warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 64 |     return PostgrestResponse(underlyingResponse: response)
 65 |   }
[24/26] Emitting module PostgREST
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:145:13: warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
143 | }
144 |
145 | private let supportedDateFormatters: [ISO8601DateFormatter] = [
    |             |- warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'supportedDateFormatters' 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
146 |   { () -> ISO8601DateFormatter in
147 |     let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[25/26] Compiling PostgREST PostgrestClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:145:13: warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
143 | }
144 |
145 | private let supportedDateFormatters: [ISO8601DateFormatter] = [
    |             |- warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'supportedDateFormatters' 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
146 |   { () -> ISO8601DateFormatter in
147 |     let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:31:31: warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 |       $0.decoder = .postgrest
 30 |       $0.encoder = .postgrest
 31 |       if let customDelegate = apiClientDelegate {
    |                               `- warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |         $0.delegate = MultiAPIClientDelegate([customDelegate, PostgrestAPIClientDelegate()])
 33 |       } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:11:17: note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
  9 |
 10 | /// Allows you to modify ``APIClient`` behavior.
 11 | public protocol APIClientDelegate {
    |                 `- note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
 12 |     /// Allows you to modify the request right before it is sent.
 13 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
  1 | import Foundation
  2 | import Get
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
  3 | import GetExtensions
  4 |
[26/26] Compiling PostgREST PostgrestError.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:145:13: warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
143 | }
144 |
145 | private let supportedDateFormatters: [ISO8601DateFormatter] = [
    |             |- warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'supportedDateFormatters' 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
146 |   { () -> ISO8601DateFormatter in
147 |     let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:31:31: warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 |       $0.decoder = .postgrest
 30 |       $0.encoder = .postgrest
 31 |       if let customDelegate = apiClientDelegate {
    |                               `- warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |         $0.delegate = MultiAPIClientDelegate([customDelegate, PostgrestAPIClientDelegate()])
 33 |       } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:11:17: note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
  9 |
 10 | /// Allows you to modify ``APIClient`` behavior.
 11 | public protocol APIClientDelegate {
    |                 `- note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
 12 |     /// Allows you to modify the request right before it is sent.
 13 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
  1 | import Foundation
  2 | import Get
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
  3 | import GetExtensions
  4 |
Build complete! (10.73s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.8.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing"
    },
    {
      "identity" : "get",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.4",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kean/Get"
    },
    {
      "identity" : "getextensions",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/binaryscraping/GetExtensions"
    }
  ],
  "manifest_display_name" : "PostgREST",
  "name" : "PostgREST",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "PostgREST",
      "targets" : [
        "PostgREST"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PostgRESTTests",
      "module_type" : "SwiftTarget",
      "name" : "PostgRESTTests",
      "path" : "Tests/PostgRESTTests",
      "product_dependencies" : [
        "SnapshotTesting"
      ],
      "sources" : [
        "BuildURLRequestTests.swift",
        "URLQueryRepresentableTests.swift"
      ],
      "target_dependencies" : [
        "PostgREST"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PostgRESTIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "PostgRESTIntegrationTests",
      "path" : "Tests/PostgRESTIntegrationTests",
      "sources" : [
        "IntegrationTests.swift"
      ],
      "target_dependencies" : [
        "PostgREST"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PostgREST",
      "module_type" : "SwiftTarget",
      "name" : "PostgREST",
      "path" : "Sources/PostgREST",
      "product_dependencies" : [
        "Get",
        "GetExtensions"
      ],
      "product_memberships" : [
        "PostgREST"
      ],
      "sources" : [
        "CountOption.swift",
        "PostgrestBuilder.swift",
        "PostgrestClient.swift",
        "PostgrestError.swift",
        "PostgrestFilterBuilder.swift",
        "PostgrestQueryBuilder.swift",
        "PostgrestResponse.swift",
        "PostgrestReturningOptions.swift",
        "PostgrestRpcBuilder.swift",
        "PostgrestTransformBuilder.swift",
        "TextSearchType.swift",
        "URLQueryRepresentable.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.