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 SwiftyVector with Swift 6.0 for Linux.

Swift 6 data race errors: 6

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/koher/swiftyvector.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/koher/swiftyvector
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c79d21f Merge pull request #6 from koher/dev-0.3.2
Cloned https://github.com/koher/swiftyvector.git
Revision (git rev-parse @):
c79d21ffb8f2c969294b10a043348ddb9ee32684
SUCCESS checkout https://github.com/koher/swiftyvector.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/koher/swiftyvector.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling SwiftyVector Concrete.swift
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:78:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' may have shared mutable state; this is an error in the Swift 6 language mode
 10 | #else
 11 |
 12 | public struct Vector2f: Vector {
    |               `- note: consider making struct 'Vector2f' conform to the 'Sendable' protocol
 13 |     public var x: Float
 14 |     public var y: Float
    :
 76 |     }
 77 |
 78 |     public static let zero: Vector2f = Vector2f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' 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
 79 |         x: 0,
 80 |         y: 0
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:165:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' may have shared mutable state; this is an error in the Swift 6 language mode
 97 | #else
 98 |
 99 | public struct Vector2: Vector {
    |               `- note: consider making struct 'Vector2' conform to the 'Sendable' protocol
100 |     public var x: Double
101 |     public var y: Double
    :
163 |     }
164 |
165 |     public static let zero: Vector2 = Vector2(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' 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
166 |         x: 0,
167 |         y: 0
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:270:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' may have shared mutable state; this is an error in the Swift 6 language mode
184 | #else
185 |
186 | public struct Vector3f: Vector {
    |               `- note: consider making struct 'Vector3f' conform to the 'Sendable' protocol
187 |     public var x: Float
188 |     public var y: Float
    :
268 |     }
269 |
270 |     public static let zero: Vector3f = Vector3f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' 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
271 |         x: 0,
272 |         y: 0,
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:376:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' may have shared mutable state; this is an error in the Swift 6 language mode
290 | #else
291 |
292 | public struct Vector3: Vector {
    |               `- note: consider making struct 'Vector3' conform to the 'Sendable' protocol
293 |     public var x: Double
294 |     public var y: Double
    :
374 |     }
375 |
376 |     public static let zero: Vector3 = Vector3(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' 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
377 |         x: 0,
378 |         y: 0,
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:484:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' may have shared mutable state; this is an error in the Swift 6 language mode
396 | #else
397 |
398 | public struct Vector4f: Vector {
    |               `- note: consider making struct 'Vector4f' conform to the 'Sendable' protocol
399 |     public var x: Float
400 |     public var y: Float
    :
482 |     }
483 |
484 |     public static let zero: Vector4f = Vector4f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' 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
485 |         x: 0,
486 |         y: 0,
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:593:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' may have shared mutable state; this is an error in the Swift 6 language mode
505 | #else
506 |
507 | public struct Vector4: Vector {
    |               `- note: consider making struct 'Vector4' conform to the 'Sendable' protocol
508 |     public var x: Double
509 |     public var y: Double
    :
591 |     }
592 |
593 |     public static let zero: Vector4 = Vector4(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' 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
594 |         x: 0,
595 |         y: 0,
[4/6] Emitting module SwiftyVector
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:78:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' may have shared mutable state; this is an error in the Swift 6 language mode
 10 | #else
 11 |
 12 | public struct Vector2f: Vector {
    |               `- note: consider making struct 'Vector2f' conform to the 'Sendable' protocol
 13 |     public var x: Float
 14 |     public var y: Float
    :
 76 |     }
 77 |
 78 |     public static let zero: Vector2f = Vector2f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2f' 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
 79 |         x: 0,
 80 |         y: 0
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:165:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' may have shared mutable state; this is an error in the Swift 6 language mode
 97 | #else
 98 |
 99 | public struct Vector2: Vector {
    |               `- note: consider making struct 'Vector2' conform to the 'Sendable' protocol
100 |     public var x: Double
101 |     public var y: Double
    :
163 |     }
164 |
165 |     public static let zero: Vector2 = Vector2(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector2' 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
166 |         x: 0,
167 |         y: 0
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:270:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' may have shared mutable state; this is an error in the Swift 6 language mode
184 | #else
185 |
186 | public struct Vector3f: Vector {
    |               `- note: consider making struct 'Vector3f' conform to the 'Sendable' protocol
187 |     public var x: Float
188 |     public var y: Float
    :
268 |     }
269 |
270 |     public static let zero: Vector3f = Vector3f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3f' 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
271 |         x: 0,
272 |         y: 0,
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:376:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' may have shared mutable state; this is an error in the Swift 6 language mode
290 | #else
291 |
292 | public struct Vector3: Vector {
    |               `- note: consider making struct 'Vector3' conform to the 'Sendable' protocol
293 |     public var x: Double
294 |     public var y: Double
    :
374 |     }
375 |
376 |     public static let zero: Vector3 = Vector3(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector3' 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
377 |         x: 0,
378 |         y: 0,
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:484:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' may have shared mutable state; this is an error in the Swift 6 language mode
396 | #else
397 |
398 | public struct Vector4f: Vector {
    |               `- note: consider making struct 'Vector4f' conform to the 'Sendable' protocol
399 |     public var x: Float
400 |     public var y: Float
    :
482 |     }
483 |
484 |     public static let zero: Vector4f = Vector4f(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4f' 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
485 |         x: 0,
486 |         y: 0,
/host/spi-builder-workspace/Sources/SwiftyVector/Concrete.swift:593:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' may have shared mutable state; this is an error in the Swift 6 language mode
505 | #else
506 |
507 | public struct Vector4: Vector {
    |               `- note: consider making struct 'Vector4' conform to the 'Sendable' protocol
508 |     public var x: Double
509 |     public var y: Double
    :
591 |     }
592 |
593 |     public static let zero: Vector4 = Vector4(
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Vector4' 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
594 |         x: 0,
595 |         y: 0,
[5/6] Compiling SwiftyVector CoreGraphics.swift
[6/6] Compiling SwiftyVector Vector.swift
Build complete! (10.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyVector",
  "name" : "SwiftyVector",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftyVector",
      "targets" : [
        "SwiftyVector"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyVectorTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyVectorTests",
      "path" : "Tests/SwiftyVectorTests",
      "sources" : [
        "ConcreteTests.swift",
        "SwiftyVectorTests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "SwiftyVector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyVector",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyVector",
      "path" : "Sources/SwiftyVector",
      "product_memberships" : [
        "SwiftyVector"
      ],
      "sources" : [
        "Concrete.swift",
        "CoreGraphics.swift",
        "Vector.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.