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

Swift 6 data race errors: 4

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/mojzesh/swift-colorful.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/mojzesh/swift-colorful
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 65ad771 Initial commit
Cloned https://github.com/mojzesh/swift-colorful.git
Revision (git rev-parse @):
65ad771827e2af51be02a33a0762bca09552c89e
SUCCESS checkout https://github.com/mojzesh/swift-colorful.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mojzesh/swift-colorful.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/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/10] Compiling Colorful soft_palettegen.swift
[4/10] Compiling Colorful happy_palettegen.swift
[5/10] Compiling Colorful hsluv.swift
/host/spi-builder-workspace/Sources/Colorful/hsluv.swift:13:12: warning: var 'hSLuvD65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 11 | import Foundation
 12 |
 13 | public var hSLuvD65: WhiteReference = WhiteReference(X: 0.95045592705167, Y: 1.0, Z: 1.089057750759878)
    |            |- warning: var 'hSLuvD65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'hSLuvD65' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'hSLuvD65' 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
 14 |
 15 | extension Color {
/host/spi-builder-workspace/Sources/Colorful/hsluv.swift:142:16: warning: static property 'm' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
140 |     }
141 |
142 |     static var m: [[Float64]] = [
    |                |- warning: static property 'm' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'm' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'm' 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
143 |         [3.2409699419045214, -1.5373831775700935, -0.49861076029300328],
144 |         [-0.96924363628087983, 1.8759675015077207, 0.041555057407175613],
[6/10] Compiling Colorful colorgens.swift
[7/10] Compiling Colorful colors.swift
/host/spi-builder-workspace/Sources/Colorful/colors.swift:27:12: warning: var 'D65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  25 |
  26 | // This is the default reference white point.
  27 | public var D65: WhiteReference = WhiteReference(X: 0.95047, Y: 1.00000, Z: 1.08883)
     |            |- warning: var 'D65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
     |            |- note: convert 'D65' to a 'let' constant to make 'Sendable' shared state immutable
     |            |- note: annotate 'D65' 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
  28 |
  29 | // And another one.
/host/spi-builder-workspace/Sources/Colorful/colors.swift:30:12: warning: var 'D50' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  28 |
  29 | // And another one.
  30 | public var D50: WhiteReference = WhiteReference(X: 0.96422, Y: 1.00000, Z: 0.82521)
     |            |- warning: var 'D50' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
     |            |- note: convert 'D50' to a 'let' constant to make 'Sendable' shared state immutable
     |            |- note: annotate 'D50' 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
  31 |
  32 | public struct Color: CustomStringConvertible, Equatable, Comparable {
[8/10] Emitting module Colorful
/host/spi-builder-workspace/Sources/Colorful/colors.swift:27:12: warning: var 'D65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  25 |
  26 | // This is the default reference white point.
  27 | public var D65: WhiteReference = WhiteReference(X: 0.95047, Y: 1.00000, Z: 1.08883)
     |            |- warning: var 'D65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
     |            |- note: convert 'D65' to a 'let' constant to make 'Sendable' shared state immutable
     |            |- note: annotate 'D65' 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
  28 |
  29 | // And another one.
/host/spi-builder-workspace/Sources/Colorful/colors.swift:30:12: warning: var 'D50' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  28 |
  29 | // And another one.
  30 | public var D50: WhiteReference = WhiteReference(X: 0.96422, Y: 1.00000, Z: 0.82521)
     |            |- warning: var 'D50' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
     |            |- note: convert 'D50' to a 'let' constant to make 'Sendable' shared state immutable
     |            |- note: annotate 'D50' 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
  31 |
  32 | public struct Color: CustomStringConvertible, Equatable, Comparable {
/host/spi-builder-workspace/Sources/Colorful/hsluv.swift:13:12: warning: var 'hSLuvD65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 11 | import Foundation
 12 |
 13 | public var hSLuvD65: WhiteReference = WhiteReference(X: 0.95045592705167, Y: 1.0, Z: 1.089057750759878)
    |            |- warning: var 'hSLuvD65' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'hSLuvD65' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'hSLuvD65' 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
 14 |
 15 | extension Color {
/host/spi-builder-workspace/Sources/Colorful/hsluv.swift:142:16: warning: static property 'm' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
140 |     }
141 |
142 |     static var m: [[Float64]] = [
    |                |- warning: static property 'm' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'm' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'm' 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
143 |         [3.2409699419045214, -1.5373831775700935, -0.49861076029300328],
144 |         [-0.96924363628087983, 1.8759675015077207, 0.041555057407175613],
[9/10] Compiling Colorful warm_palettegen.swift
[10/10] Compiling Colorful sort.swift
Build complete! (8.59s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-colorful",
  "name" : "swift-colorful",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Colorful",
      "targets" : [
        "Colorful"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ColorfulTests",
      "module_type" : "SwiftTarget",
      "name" : "ColorfulTests",
      "path" : "Tests/ColorfulTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/ColorfulTests/Resources/hsluv-snapshot-rev4.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "swift_colorfulTests.swift",
        "swift_hsluvTests.swift",
        "swift_sortTests.swift"
      ],
      "target_dependencies" : [
        "Colorful"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Colorful",
      "module_type" : "SwiftTarget",
      "name" : "Colorful",
      "path" : "Sources/Colorful",
      "product_memberships" : [
        "Colorful"
      ],
      "sources" : [
        "colorgens.swift",
        "colors.swift",
        "happy_palettegen.swift",
        "hsluv.swift",
        "soft_palettegen.swift",
        "sort.swift",
        "warm_palettegen.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.