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 Swiplot, reference master (b79d49), with Swift 6.0 for Linux on 31 Oct 2024 21:10:23 UTC.

Swift 6 data race errors: 7

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/t-ae/swiplot.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/t-ae/swiplot
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b79d49c Update for Swift4
Cloned https://github.com/t-ae/swiplot.git
Revision (git rev-parse @):
b79d49c76c54637a3a4cea8e7e22d26fc5cf8bd7
SUCCESS checkout https://github.com/t-ae/swiplot.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/t-ae/swiplot.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Swiplot Color.swift
/host/spi-builder-workspace/Sources/Color.swift:14:16: warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
12 |
13 | extension Color {
14 |     static let red = Color("red")
   |                |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'red' 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
15 |     static let green = Color("green")
16 |     static let blue = Color("blue")
/host/spi-builder-workspace/Sources/Color.swift:15:16: warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
13 | extension Color {
14 |     static let red = Color("red")
15 |     static let green = Color("green")
   |                |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'green' 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
16 |     static let blue = Color("blue")
17 |     static let black = Color("black")
/host/spi-builder-workspace/Sources/Color.swift:16:16: warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
14 |     static let red = Color("red")
15 |     static let green = Color("green")
16 |     static let blue = Color("blue")
   |                |- warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'blue' 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
17 |     static let black = Color("black")
18 |     static let cyan = Color("cyan")
/host/spi-builder-workspace/Sources/Color.swift:17:16: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
15 |     static let green = Color("green")
16 |     static let blue = Color("blue")
17 |     static let black = Color("black")
   |                |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'black' 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
18 |     static let cyan = Color("cyan")
19 |     static let magenta = Color("magenta")
/host/spi-builder-workspace/Sources/Color.swift:18:16: warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
16 |     static let blue = Color("blue")
17 |     static let black = Color("black")
18 |     static let cyan = Color("cyan")
   |                |- warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'cyan' 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
19 |     static let magenta = Color("magenta")
20 |     static let yellow = Color("yellow")
/host/spi-builder-workspace/Sources/Color.swift:19:16: warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
17 |     static let black = Color("black")
18 |     static let cyan = Color("cyan")
19 |     static let magenta = Color("magenta")
   |                |- warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'magenta' 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
20 |     static let yellow = Color("yellow")
21 | }
/host/spi-builder-workspace/Sources/Color.swift:20:16: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
18 |     static let cyan = Color("cyan")
19 |     static let magenta = Color("magenta")
20 |     static let yellow = Color("yellow")
   |                |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'yellow' 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
21 | }
22 |
[4/10] Emitting module Swiplot
/host/spi-builder-workspace/Sources/Color.swift:14:16: warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
12 |
13 | extension Color {
14 |     static let red = Color("red")
   |                |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'red' 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
15 |     static let green = Color("green")
16 |     static let blue = Color("blue")
/host/spi-builder-workspace/Sources/Color.swift:15:16: warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
13 | extension Color {
14 |     static let red = Color("red")
15 |     static let green = Color("green")
   |                |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'green' 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
16 |     static let blue = Color("blue")
17 |     static let black = Color("black")
/host/spi-builder-workspace/Sources/Color.swift:16:16: warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
14 |     static let red = Color("red")
15 |     static let green = Color("green")
16 |     static let blue = Color("blue")
   |                |- warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'blue' 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
17 |     static let black = Color("black")
18 |     static let cyan = Color("cyan")
/host/spi-builder-workspace/Sources/Color.swift:17:16: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
15 |     static let green = Color("green")
16 |     static let blue = Color("blue")
17 |     static let black = Color("black")
   |                |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'black' 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
18 |     static let cyan = Color("cyan")
19 |     static let magenta = Color("magenta")
/host/spi-builder-workspace/Sources/Color.swift:18:16: warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
16 |     static let blue = Color("blue")
17 |     static let black = Color("black")
18 |     static let cyan = Color("cyan")
   |                |- warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'cyan' 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
19 |     static let magenta = Color("magenta")
20 |     static let yellow = Color("yellow")
/host/spi-builder-workspace/Sources/Color.swift:19:16: warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
17 |     static let black = Color("black")
18 |     static let cyan = Color("cyan")
19 |     static let magenta = Color("magenta")
   |                |- warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'magenta' 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
20 |     static let yellow = Color("yellow")
21 | }
/host/spi-builder-workspace/Sources/Color.swift:20:16: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public struct Color {
   |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 2 |     let str: String
 3 |
   :
18 |     static let cyan = Color("cyan")
19 |     static let magenta = Color("magenta")
20 |     static let yellow = Color("yellow")
   |                |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'yellow' 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
21 | }
22 |
[5/10] Compiling Swiplot SingleLine.swift
[6/10] Compiling Swiplot Graph.swift
[7/10] Compiling Swiplot Graph3D.swift
[8/10] Compiling Swiplot LineStyle.swift
[9/10] Compiling Swiplot Plot3D.swift
/host/spi-builder-workspace/Sources/Plot3D.swift:14:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 12 |
 13 |         if let gnuplotPath = gnuplotPath {
 14 |             process.launchPath = gnuplotPath
    |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |                     `- note: use 'executableURL' instead
 15 |             process.arguments = ["-p"]
 16 |         } else {
/host/spi-builder-workspace/Sources/Plot3D.swift:19:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 17 |             process.environment = ProcessInfo.processInfo.environment
 18 |             process.environment!["PATH"] = "/usr/local/bin:" + process.environment!["PATH"]!
 19 |             process.launchPath = "/usr/bin/env"
    |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |                     `- note: use 'executableURL' instead
 20 |
 21 |             process.arguments = ["gnuplot", "-p"]
/host/spi-builder-workspace/Sources/Plot3D.swift:45:17: warning: 'launch()' is deprecated: renamed to 'run'
 43 |         }
 44 |
 45 |         process.launch()
    |                 |- warning: 'launch()' is deprecated: renamed to 'run'
    |                 `- note: use 'run' instead
 46 |
 47 |         for q in setting.queries() {
[10/10] Compiling Swiplot Plot.swift
/host/spi-builder-workspace/Sources/Plot.swift:14:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 12 |
 13 |         if let gnuplotPath = gnuplotPath {
 14 |             process.launchPath = gnuplotPath
    |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |                     `- note: use 'executableURL' instead
 15 |             process.arguments = ["-p"]
 16 |         } else {
/host/spi-builder-workspace/Sources/Plot.swift:19:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 17 |             process.environment = ProcessInfo.processInfo.environment
 18 |             process.environment!["PATH"] = "/usr/local/bin:" + process.environment!["PATH"]!
 19 |             process.launchPath = "/usr/bin/env"
    |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |                     `- note: use 'executableURL' instead
 20 |
 21 |             process.arguments = ["gnuplot", "-p"]
/host/spi-builder-workspace/Sources/Plot.swift:45:17: warning: 'launch()' is deprecated: renamed to 'run'
 43 |         }
 44 |
 45 |         process.launch()
    |                 |- warning: 'launch()' is deprecated: renamed to 'run'
    |                 `- note: use 'run' instead
 46 |
 47 |         for q in setting.queries() {
Build complete! (9.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Swiplot",
  "name" : "Swiplot",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Swiplot",
      "targets" : [
        "Swiplot"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiplotTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiplotTests",
      "path" : "Tests/SwiplotTests",
      "sources" : [
        "SwiplotTests.swift"
      ],
      "target_dependencies" : [
        "Swiplot"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Swiplot",
      "module_type" : "SwiftTarget",
      "name" : "Swiplot",
      "path" : "Sources",
      "product_memberships" : [
        "Swiplot"
      ],
      "sources" : [
        "Color.swift",
        "Graph.swift",
        "Graph3D.swift",
        "LineStyle.swift",
        "Plot.swift",
        "Plot3D.swift",
        "SingleLine.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.