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

Swift 6 data race errors: 6

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/Kitura/FileKit.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/Kitura/FileKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9d3ddb8 Update dependency (LoggerAPI 2.0.0); Update README to reflect Swift 5.2 minimum requirement (#16)
Cloned https://github.com/Kitura/FileKit.git
Revision (git rev-parse @):
9d3ddb89a16d388eaad0db5e17c4682b767bd48f
SUCCESS checkout https://github.com/Kitura/FileKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Kitura/FileKit.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
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.22s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.94s)
Fetching https://github.com/apple/swift-log.git
[1/3353] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.36s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (1.67s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/9] Compiling Logging MetadataProvider.swift
[6/9] Compiling Logging Locks.swift
[7/9] Compiling Logging LogHandler.swift
[8/9] Emitting module Logging
[9/9] Compiling Logging Logging.swift
[11/12] Emitting module LoggerAPI
[12/12] Compiling LoggerAPI Logger.swift
[14/15] Emitting module FileKit
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:43:23: warning: static property 'executableFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     /// let urlObject = FileKit.executableFolderURL
 42 |     /// ```
 43 |     public static let executableFolderURL: URL = { () -> URL in
    |                       `- warning: static property 'executableFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 44 |         if isRanInsideXcode || isRanFromXCTest {
 45 |             // Get URL to /debug manually
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 15 |  */
 16 |
 17 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 18 | import LoggerAPI
 19 |
    :
 41 |     /// let urlObject = FileKit.executableFolderURL
 42 |     /// ```
 43 |     public static let executableFolderURL: URL = { () -> URL in
    |                       |- note: annotate 'executableFolderURL' 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
 44 |         if isRanInsideXcode || isRanFromXCTest {
 45 |             // Get URL to /debug manually
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:175:24: warning: static property 'sourceFileURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
173 |
174 |     /// URL pointing to this source file
175 |     private static let sourceFileURL: URL = URL(fileURLWithPath: #file)
    |                        |- warning: static property 'sourceFileURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'sourceFileURL' 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
176 |
177 |     /// Takes a starting directory and iterates down the tree to find package.swift (the root directory)
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:80:23: warning: static property 'executableURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 78 |     /// let urlObject = FileKit.executableURL
 79 |     /// ```
 80 |     public static let executableURL: URL = { () -> URL in
    |                       |- warning: static property 'executableURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'executableURL' 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
 81 |         #if os(Linux)
 82 |         // Bundle is not available on Linux yet
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:118:23: warning: static property 'projectFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
116 |     /// let urlObject = FileKit.projectFolderURL
117 |     /// ```
118 |     public static let projectFolderURL: URL = { () -> URL in
    |                       |- warning: static property 'projectFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'projectFolderURL' 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
119 |         guard let url = projectHeadIterator(executableFolderURL) else {
120 |             Log.warning("No Package.swift found. Using executable folder as project folder.")
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:178:24: warning: static property 'projectHeadIterator' is not concurrency-safe because non-'Sendable' type '(URL) -> URL?' may have shared mutable state; this is an error in the Swift 6 language mode
176 |
177 |     /// Takes a starting directory and iterates down the tree to find package.swift (the root directory)
178 |     private static let projectHeadIterator = { (startingDir: URL) -> URL? in
    |                        |- warning: static property 'projectHeadIterator' is not concurrency-safe because non-'Sendable' type '(URL) -> URL?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'projectHeadIterator' 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
179 |         let fileManager = FileManager()
180 |         var startingDir = startingDir.appendingPathComponent("dummy")
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:146:23: warning: static property 'workingDirectoryURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
144 |     /// let urlObject = FileKit.workingDirectoryURL
145 |     /// ```
146 |     public static let workingDirectoryURL: URL = { () -> URL in
    |                       |- warning: static property 'workingDirectoryURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'workingDirectoryURL' 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
147 |         guard isRanInsideXcode || isRanFromXCTest, let url = projectHeadIterator(executableFolderURL) else {
148 |             return URL(fileURLWithPath: "")
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
[15/15] Compiling FileKit FileKit.swift
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:43:23: warning: static property 'executableFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     /// let urlObject = FileKit.executableFolderURL
 42 |     /// ```
 43 |     public static let executableFolderURL: URL = { () -> URL in
    |                       `- warning: static property 'executableFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 44 |         if isRanInsideXcode || isRanFromXCTest {
 45 |             // Get URL to /debug manually
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 15 |  */
 16 |
 17 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 18 | import LoggerAPI
 19 |
    :
 41 |     /// let urlObject = FileKit.executableFolderURL
 42 |     /// ```
 43 |     public static let executableFolderURL: URL = { () -> URL in
    |                       |- note: annotate 'executableFolderURL' 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
 44 |         if isRanInsideXcode || isRanFromXCTest {
 45 |             // Get URL to /debug manually
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:175:24: warning: static property 'sourceFileURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
173 |
174 |     /// URL pointing to this source file
175 |     private static let sourceFileURL: URL = URL(fileURLWithPath: #file)
    |                        |- warning: static property 'sourceFileURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'sourceFileURL' 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
176 |
177 |     /// Takes a starting directory and iterates down the tree to find package.swift (the root directory)
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:80:23: warning: static property 'executableURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 78 |     /// let urlObject = FileKit.executableURL
 79 |     /// ```
 80 |     public static let executableURL: URL = { () -> URL in
    |                       |- warning: static property 'executableURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'executableURL' 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
 81 |         #if os(Linux)
 82 |         // Bundle is not available on Linux yet
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:118:23: warning: static property 'projectFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
116 |     /// let urlObject = FileKit.projectFolderURL
117 |     /// ```
118 |     public static let projectFolderURL: URL = { () -> URL in
    |                       |- warning: static property 'projectFolderURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'projectFolderURL' 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
119 |         guard let url = projectHeadIterator(executableFolderURL) else {
120 |             Log.warning("No Package.swift found. Using executable folder as project folder.")
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:178:24: warning: static property 'projectHeadIterator' is not concurrency-safe because non-'Sendable' type '(URL) -> URL?' may have shared mutable state; this is an error in the Swift 6 language mode
176 |
177 |     /// Takes a starting directory and iterates down the tree to find package.swift (the root directory)
178 |     private static let projectHeadIterator = { (startingDir: URL) -> URL? in
    |                        |- warning: static property 'projectHeadIterator' is not concurrency-safe because non-'Sendable' type '(URL) -> URL?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'projectHeadIterator' 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
179 |         let fileManager = FileManager()
180 |         var startingDir = startingDir.appendingPathComponent("dummy")
/host/spi-builder-workspace/Sources/FileKit/FileKit.swift:146:23: warning: static property 'workingDirectoryURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
144 |     /// let urlObject = FileKit.workingDirectoryURL
145 |     /// ```
146 |     public static let workingDirectoryURL: URL = { () -> URL in
    |                       |- warning: static property 'workingDirectoryURL' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'workingDirectoryURL' 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
147 |         guard isRanInsideXcode || isRanFromXCTest, let url = projectHeadIterator(executableFolderURL) else {
148 |             return URL(fileURLWithPath: "")
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
Build complete! (19.20s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "loggerapi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/LoggerAPI.git"
    }
  ],
  "manifest_display_name" : "FileKit",
  "name" : "FileKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FileKit",
      "targets" : [
        "FileKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FileKitTests",
      "module_type" : "SwiftTarget",
      "name" : "FileKitTests",
      "path" : "Tests/FileKitTests",
      "sources" : [
        "FileKitTests.swift"
      ],
      "target_dependencies" : [
        "FileKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FileKit",
      "module_type" : "SwiftTarget",
      "name" : "FileKit",
      "path" : "Sources/FileKit",
      "product_dependencies" : [
        "LoggerAPI"
      ],
      "product_memberships" : [
        "FileKit"
      ],
      "sources" : [
        "FileKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.