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 macOS (SPM).

Swift 6 data race errors: 4

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/mojzesh/swift-colorful.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mojzesh/swift-colorful.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/38] Write sources
[6/38] Write DemoColorDist-macOS-entitlement.plist
[8/38] Write sources
[8/38] Write DemoColorGens-macOS-entitlement.plist
[8/38] Write DemoGradientGen-macOS-entitlement.plist
[9/38] Write sources
[12/38] Write DemoColorBlend-macOS-entitlement.plist
[13/38] Write DemoPaletteGens-macOS-entitlement.plist
[14/38] Write DemoColorSort-macOS-entitlement.plist
[15/38] Write Benchmark-macOS-entitlement.plist
[16/38] Write swift-version-6F35C1178C84523A.txt
[18/46] Compiling Colorful warm_palettegen.swift
[19/46] Compiling Colorful sort.swift
[20/46] Compiling Colorful soft_palettegen.swift
[21/46] Compiling Colorful happy_palettegen.swift
[22/46] Compiling Colorful hsluv.swift
/Users/admin/builder/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 {
/Users/admin/builder/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],
[23/46] Compiling Colorful colorgens.swift
[24/46] Emitting module Colorful
/Users/admin/builder/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.
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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],
[25/46] Compiling Colorful colors.swift
/Users/admin/builder/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.
/Users/admin/builder/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 {
[26/50] Compiling DemoColorDist main.swift
[27/50] Emitting module DemoColorDist
[27/50] Write Objects.LinkFileList
[28/50] Linking DemoColorDist-macOS
[29/50] Applying DemoColorDist-macOS
[31/50] Compiling DemoShared shared.swift
[32/50] Emitting module DemoShared
[33/62] Emitting module Benchmark
[34/62] Compiling Benchmark main.swift
[34/62] Write Objects.LinkFileList
[36/62] Compiling DemoColorGens main.swift
[37/62] Emitting module DemoColorGens
[37/62] Write Objects.LinkFileList
[39/62] Compiling DemoColorBlend main.swift
[40/62] Emitting module DemoColorBlend
[40/62] Write Objects.LinkFileList
[42/62] Emitting module DemoGradientGen
[43/62] Compiling DemoGradientGen main.swift
[43/62] Write Objects.LinkFileList
[45/62] Emitting module DemoColorSort
[46/62] Compiling DemoColorSort main.swift
[46/62] Write Objects.LinkFileList
[48/62] Emitting module DemoPaletteGens
[49/62] Compiling DemoPaletteGens main.swift
[49/62] Write Objects.LinkFileList
[50/62] Linking Benchmark-macOS
[51/62] Applying Benchmark-macOS
[52/62] Linking DemoColorGens-macOS
[53/62] Applying DemoColorGens-macOS
[54/62] Linking DemoColorBlend-macOS
[55/62] Applying DemoColorBlend-macOS
[56/62] Linking DemoGradientGen-macOS
[57/62] Linking DemoColorSort-macOS
[58/62] Applying DemoGradientGen-macOS
[59/62] Applying DemoColorSort-macOS
[60/62] Linking DemoPaletteGens-macOS
[61/62] Applying DemoPaletteGens-macOS
Build complete! (28.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-colorful",
  "name" : "swift-colorful",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Colorful",
      "targets" : [
        "Colorful"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DemoColorBlend-macOS",
      "targets" : [
        "DemoColorBlend"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "DemoColorDist-macOS",
      "targets" : [
        "DemoColorDist"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "DemoColorGens-macOS",
      "targets" : [
        "DemoColorGens"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "DemoColorSort-macOS",
      "targets" : [
        "DemoColorSort"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "DemoGradientGen-macOS",
      "targets" : [
        "DemoGradientGen"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "DemoPaletteGens-macOS",
      "targets" : [
        "DemoPaletteGens"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Benchmark-macOS",
      "targets" : [
        "Benchmark"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DemoShared",
      "module_type" : "SwiftTarget",
      "name" : "DemoShared",
      "path" : "Sources/Demos/Shared",
      "product_memberships" : [
        "DemoColorBlend-macOS",
        "DemoColorGens-macOS",
        "DemoColorSort-macOS",
        "DemoGradientGen-macOS",
        "DemoPaletteGens-macOS",
        "Benchmark-macOS"
      ],
      "sources" : [
        "shared.swift"
      ],
      "target_dependencies" : [
        "Colorful"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DemoPaletteGens",
      "module_type" : "SwiftTarget",
      "name" : "DemoPaletteGens",
      "path" : "Sources/Demos/PaletteGens",
      "product_memberships" : [
        "DemoPaletteGens-macOS"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Colorful",
        "DemoShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "DemoGradientGen",
      "module_type" : "SwiftTarget",
      "name" : "DemoGradientGen",
      "path" : "Sources/Demos/GradientGen",
      "product_memberships" : [
        "DemoGradientGen-macOS"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Colorful",
        "DemoShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "DemoColorSort",
      "module_type" : "SwiftTarget",
      "name" : "DemoColorSort",
      "path" : "Sources/Demos/ColorSort",
      "product_memberships" : [
        "DemoColorSort-macOS"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Colorful",
        "DemoShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "DemoColorGens",
      "module_type" : "SwiftTarget",
      "name" : "DemoColorGens",
      "path" : "Sources/Demos/ColorGens",
      "product_memberships" : [
        "DemoColorGens-macOS"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Colorful",
        "DemoShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "DemoColorDist",
      "module_type" : "SwiftTarget",
      "name" : "DemoColorDist",
      "path" : "Sources/Demos/ColorDist",
      "product_memberships" : [
        "DemoColorDist-macOS"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Colorful"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "DemoColorBlend",
      "module_type" : "SwiftTarget",
      "name" : "DemoColorBlend",
      "path" : "Sources/Demos/ColorBlend",
      "product_memberships" : [
        "DemoColorBlend-macOS"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Colorful",
        "DemoShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "ColorfulTests",
      "module_type" : "SwiftTarget",
      "name" : "ColorfulTests",
      "path" : "Tests/ColorfulTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/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",
        "DemoColorBlend-macOS",
        "DemoColorDist-macOS",
        "DemoColorGens-macOS",
        "DemoColorSort-macOS",
        "DemoGradientGen-macOS",
        "DemoPaletteGens-macOS",
        "Benchmark-macOS"
      ],
      "sources" : [
        "colorgens.swift",
        "colors.swift",
        "happy_palettegen.swift",
        "hsluv.swift",
        "soft_palettegen.swift",
        "sort.swift",
        "warm_palettegen.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Benchmark",
      "module_type" : "SwiftTarget",
      "name" : "Benchmark",
      "path" : "Sources/Demos/Benchmark",
      "product_memberships" : [
        "Benchmark-macOS"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Colorful",
        "DemoShared"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.