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 swift-bezier, reference main (7061d2), with Swift 6.0 for Linux on 14 Oct 2024 00:52:00 UTC.

Swift 6 data race errors: 2

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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LuizZak/swift-bezier.git
Reference: main
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/LuizZak/swift-bezier
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7061d2e Adding BezierType.approximate() function
Cloned https://github.com/LuizZak/swift-bezier.git
Revision (git rev-parse @):
7061d2e5396e006e6b80313510c3689917d9569d
SUCCESS checkout https://github.com/LuizZak/swift-bezier.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/LuizZak/swift-bezier.git
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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/LuizZak/MiniP5Printer.git
[1/50] Fetching minip5printer
Fetched https://github.com/LuizZak/MiniP5Printer.git from cache (0.15s)
Fetching https://github.com/apple/swift-numerics.git
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.39s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.47s)
Creating working copy for https://github.com/LuizZak/MiniP5Printer.git
Working copy of https://github.com/LuizZak/MiniP5Printer.git resolved at main (5be1800)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/30] Emitting module SwiftBezier
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
[4/33] Compiling SwiftBezier Comparable+Ext.swift
[5/33] Compiling SwiftBezier LegendreGauss.swift
[6/33] Compiling SwiftBezier Math.swift
[7/33] Compiling SwiftBezier QuadraticSolver.swift
[8/33] Compiling SwiftBezier BezierType.swift
[9/33] Compiling SwiftBezier BoundedBezier2Type.swift
[10/33] Compiling SwiftBezier DeCasteljauSolvableBezierType.swift
[11/33] Compiling SwiftBezier DerivableBezierType.swift
[12/33] Compiling SwiftBezier BezierLookUpTable.swift
[13/33] Compiling SwiftBezier CubicBezier+Cached.swift
[14/33] Compiling SwiftBezier CubicBezier.swift
[15/33] Compiling SwiftBezier CubicBezier2.swift
[16/33] Compiling SwiftBezier CubicBezier+Alias.swift
[17/33] Compiling SwiftBezier LinearBezier+Alias.swift
[18/33] Compiling SwiftBezier QuadBezier+Alias.swift
[19/33] Compiling SwiftBezier Bezier2PointType.swift
[20/33] Compiling SwiftBezier BezierPointType.swift
[21/33] Compiling SwiftBezier ConstructibleBezier2PointType.swift
[22/33] Compiling SwiftBezier QuadBezier.swift
[23/33] Compiling SwiftBezier QuadBezier2.swift
[24/33] Compiling SwiftBezier CachedBezier.swift
[25/33] Compiling SwiftBezier BinarySearch.swift
[26/33] Compiling SwiftBezier LookUpTable.swift
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
[27/33] Compiling SwiftBezier Bezier2DPoint.swift
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
[28/33] Compiling SwiftBezier Bezier2FPoint.swift
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
[29/33] Compiling SwiftBezier Bezier2Type.swift
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2DPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Double` scalars.
  4 | public struct Bezier2DPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2DPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Double
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2DPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2DPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
/host/spi-builder-workspace/Sources/swift-bezier/Point/Bezier2FPoint.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | /// An implementation of `ConstructibleBezier2PointType` with `Float` scalars.
  4 | public struct Bezier2FPoint: ConstructibleBezier2PointType, Hashable, CustomStringConvertible {
    |               `- note: consider making struct 'Bezier2FPoint' conform to the 'Sendable' protocol
  5 |     public typealias Scalar = Float
  6 |
  7 |     /// Returns the zero point, or `(0.0, 0.0)`.
  8 |     public static let zero = Bezier2FPoint(x: 0.0, y: 0.0)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Bezier2FPoint' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'zero' 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
  9 |
 10 |     public var x: Scalar
[30/33] Compiling SwiftBezier LinearBezier+Cached.swift
[31/33] Compiling SwiftBezier LinearBezier.swift
[32/33] Compiling SwiftBezier LinearBezier2.swift
[33/33] Compiling SwiftBezier QuadBezier+Cached.swift
Build complete! (13.49s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-numerics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-numerics.git"
    },
    {
      "identity" : "minip5printer",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/LuizZak/MiniP5Printer.git"
    }
  ],
  "manifest_display_name" : "swift-bezier",
  "name" : "swift-bezier",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftBezier",
      "targets" : [
        "SwiftBezier"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftBezierTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBezierTests",
      "path" : "Tests/swift-bezierTests",
      "product_dependencies" : [
        "Numerics",
        "MiniP5Printer"
      ],
      "sources" : [
        "Beziers/Cubic/CubicBezier2Tests.swift",
        "Beziers/Cubic/CubicBezierTests.swift",
        "Beziers/Linear/LinearBezier2Tests.swift",
        "Beziers/Linear/LinearBezierTests.swift",
        "Beziers/Quadratic/QuadBezier2Tests.swift",
        "Beziers/Quadratic/QuadBezierTests.swift",
        "CachedBezierTests.swift",
        "Internal/BinarySearchTests.swift",
        "Internal/QuadraticSolverTests.swift",
        "LookUpTableTests.swift",
        "Point/Bezier2DPointTests.swift",
        "Point/Bezier2FPointTests.swift",
        "Protocols/BezierTypeTests.swift",
        "TestUtils/Assertions.swift",
        "TestUtils/CubicBezier2+Factory.swift",
        "TestUtils/LinearBezier2+Factory.swift",
        "TestUtils/P5Printer.swift",
        "TestUtils/ProxyTestBezier.swift",
        "TestUtils/QuadBezier2+Factory.swift",
        "TestUtils/TestFixture.swift"
      ],
      "target_dependencies" : [
        "SwiftBezier"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftBezier",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBezier",
      "path" : "Sources/swift-bezier",
      "product_memberships" : [
        "SwiftBezier"
      ],
      "sources" : [
        "BezierLookUpTable.swift",
        "Beziers/Cubic/CubicBezier+Cached.swift",
        "Beziers/Cubic/CubicBezier.swift",
        "Beziers/Cubic/CubicBezier2.swift",
        "Beziers/Linear/LinearBezier+Cached.swift",
        "Beziers/Linear/LinearBezier.swift",
        "Beziers/Linear/LinearBezier2.swift",
        "Beziers/Quadratic/QuadBezier+Cached.swift",
        "Beziers/Quadratic/QuadBezier.swift",
        "Beziers/Quadratic/QuadBezier2.swift",
        "CachedBezier.swift",
        "Internal/BinarySearch.swift",
        "Internal/Comparable+Ext.swift",
        "Internal/LegendreGauss.swift",
        "Internal/Math.swift",
        "Internal/QuadraticSolver.swift",
        "LookUpTable.swift",
        "Point/Bezier2DPoint.swift",
        "Point/Bezier2FPoint.swift",
        "Protocols/Bezier2Type.swift",
        "Protocols/BezierType.swift",
        "Protocols/BoundedBezier2Type.swift",
        "Protocols/DeCasteljauSolvableBezierType.swift",
        "Protocols/DerivableBezierType.swift",
        "Protocols/Point/Bezier2PointType.swift",
        "Protocols/Point/BezierPointType.swift",
        "Protocols/Point/ConstructibleBezier2PointType.swift",
        "Typealiases/CubicBezier+Alias.swift",
        "Typealiases/LinearBezier+Alias.swift",
        "Typealiases/QuadBezier+Alias.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.