This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 CommonParsers with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ilyapuchka/common-parsers.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ilyapuchka/common-parsers
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at fb6f45c print template without parameters
Cloned https://github.com/ilyapuchka/common-parsers.git
Revision (git rev-parse @):
fb6f45cc44c4bd3b1385bf57e67755944e405ede
SUCCESS checkout https://github.com/ilyapuchka/common-parsers.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/ilyapuchka/common-parsers.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/37] Emitting module Prelude
[5/40] Compiling Prelude Alt.swift
[6/40] Compiling Prelude Array.swift
[7/40] Compiling Prelude Collection.swift
[8/40] Compiling Prelude CommutativeRing.swift
[9/40] Compiling Prelude Strong.swift
[10/40] Compiling Prelude Tuple.swift
[11/40] Compiling Prelude Unit.swift
[12/40] Compiling Prelude Equatable.swift
[13/40] Compiling Prelude EuclideanRing.swift
[14/40] Compiling Prelude Field.swift
[15/40] Compiling Prelude Filterable.swift
[16/40] Compiling Prelude Ring.swift
[17/40] Compiling Prelude Semigroup.swift
[18/40] Compiling Prelude Semiring.swift
[19/40] Compiling Prelude NearSemiring.swift
[20/40] Compiling Prelude Never.swift
[21/40] Compiling Prelude Operators.swift
[22/40] Compiling Prelude Optional.swift
[23/40] Compiling Prelude Comparable.swift
[24/40] Compiling Prelude Comparator.swift
[25/40] Compiling Prelude Curry.swift
[26/40] Compiling Prelude Endo.swift
[27/40] Compiling Prelude Parallel.swift
[28/40] Compiling Prelude Plus.swift
[29/40] Compiling Prelude PrecedenceGroups.swift
[30/40] Compiling Prelude FreeNearSemiring.swift
[31/40] Compiling Prelude Func.swift
[32/40] Compiling Prelude Function.swift
[33/40] Compiling Prelude HeytingAlgebra.swift
[34/40] Compiling Prelude Sequence.swift
[35/40] Compiling Prelude Set.swift
[36/40] Compiling Prelude String.swift
[37/40] Compiling Prelude Hole.swift
[38/40] Compiling Prelude IO.swift
[39/40] Compiling Prelude KeyPath.swift
[40/40] Compiling Prelude Monoid.swift
[41/47] Compiling CommonParsers PartialIso.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonParsers/PartialIso.swift:212:12: warning: let 'jsonDictionaryToData' is not concurrency-safe because non-'Sendable' type 'PartialIso<[String : String], Data>' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public struct PartialIso<A, B> {
    |               `- note: consider making generic struct 'PartialIso' conform to the 'Sendable' protocol
 23 |     public let apply: (A) throws -> B?
 24 |     public let unapply: (B) throws -> A?
    :
210 | }
211 |
212 | public let jsonDictionaryToData = PartialIso<[String: String], Data>(
    |            |- warning: let 'jsonDictionaryToData' is not concurrency-safe because non-'Sendable' type 'PartialIso<[String : String], Data>' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'jsonDictionaryToData' 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
213 |     apply: { try? JSONSerialization.data(withJSONObject: $0) },
214 |     unapply: {
[42/47] Compiling CommonParsers Template.swift
[43/47] Compiling CommonParsers Parenthesize.swift
[44/47] Compiling CommonParsers Matchable.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommonParsers/Matchable.swift:10:23: warning: forming 'UnsafeRawPointer' to a variable of type 'Root'; this is likely incorrect because 'Root' may contain an object reference.
  8 |             var otherRoot = embed(value)
  9 |             var root = root
 10 |             if memcmp(&root, &otherRoot, MemoryLayout<Root>.size) == 0 {
    |                       `- warning: forming 'UnsafeRawPointer' to a variable of type 'Root'; this is likely incorrect because 'Root' may contain an object reference.
 11 |                 return ([], value)
 12 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CommonParsers/Matchable.swift:10:30: warning: forming 'UnsafeRawPointer' to a variable of type 'Root'; this is likely incorrect because 'Root' may contain an object reference.
  8 |             var otherRoot = embed(value)
  9 |             var root = root
 10 |             if memcmp(&root, &otherRoot, MemoryLayout<Root>.size) == 0 {
    |                              `- warning: forming 'UnsafeRawPointer' to a variable of type 'Root'; this is likely incorrect because 'Root' may contain an object reference.
 11 |                 return ([], value)
 12 |             }
[45/47] Emitting module CommonParsers
/Users/admin/builder/spi-builder-workspace/Sources/CommonParsers/PartialIso.swift:212:12: warning: let 'jsonDictionaryToData' is not concurrency-safe because non-'Sendable' type 'PartialIso<[String : String], Data>' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public struct PartialIso<A, B> {
    |               `- note: consider making generic struct 'PartialIso' conform to the 'Sendable' protocol
 23 |     public let apply: (A) throws -> B?
 24 |     public let unapply: (B) throws -> A?
    :
210 | }
211 |
212 | public let jsonDictionaryToData = PartialIso<[String: String], Data>(
    |            |- warning: let 'jsonDictionaryToData' is not concurrency-safe because non-'Sendable' type 'PartialIso<[String : String], Data>' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'jsonDictionaryToData' 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
213 |     apply: { try? JSONSerialization.data(withJSONObject: $0) },
214 |     unapply: {
[46/47] Compiling CommonParsers Format.swift
[47/47] Compiling CommonParsers Parser.swift
Build complete! (25.07s)
Fetching https://github.com/pointfreeco/swift-prelude.git
[1/3290] Fetching swift-prelude
Fetched https://github.com/pointfreeco/swift-prelude.git from cache (1.04s)
Creating working copy for https://github.com/pointfreeco/swift-prelude.git
Working copy of https://github.com/pointfreeco/swift-prelude.git resolved at master (c61b493)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-prelude",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-prelude.git"
    }
  ],
  "manifest_display_name" : "CommonParsers",
  "name" : "CommonParsers",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CommonParsers",
      "targets" : [
        "CommonParsers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommonParsersTests",
      "module_type" : "SwiftTarget",
      "name" : "CommonParsersTests",
      "path" : "Tests/CommonParsersTests",
      "sources" : [
        "CommonParsersTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CommonParsers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommonParsers",
      "module_type" : "SwiftTarget",
      "name" : "CommonParsers",
      "path" : "Sources/CommonParsers",
      "product_dependencies" : [
        "Prelude"
      ],
      "product_memberships" : [
        "CommonParsers"
      ],
      "sources" : [
        "Format.swift",
        "Matchable.swift",
        "Parenthesize.swift",
        "Parser.swift",
        "PartialIso.swift",
        "Template.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.