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 FileUtils with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

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/nerzh/SwiftFileUtils.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nerzh/SwiftFileUtils
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 596947e ref2
Cloned https://github.com/nerzh/SwiftFileUtils.git
Revision (git rev-parse @):
596947ed909050f61fa0d342df4b5959bf48342c
SUCCESS checkout https://github.com/nerzh/SwiftFileUtils.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/nerzh/SwiftFileUtils.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/5] Compiling SwiftRegularExpression String+Regexp.swift
[5/5] Emitting module SwiftRegularExpression
[6/11] Compiling FileUtils FileReader.swift
[7/11] Compiling FileUtils Mode.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:21:27: warning: static property 'append' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
   |                           |- warning: static property 'append' 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 'append' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'append' 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
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:22:27: warning: static property 'clear' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
   |                           |- warning: static property 'clear' 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 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'clear' 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
23 |         public static var createFile = Mode(rawValue: 4)
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:23:27: warning: static property 'createFile' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
   |                           |- warning: static property 'createFile' 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 'createFile' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'createFile' 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
24 |     }
25 | }
[8/11] Compiling FileUtils WriteFile.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:22:27: warning: static property 'clear' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
   |                           |- warning: static property 'clear' 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 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'clear' 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
23 |         public static var createFile = Mode(rawValue: 4)
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:23:27: warning: static property 'createFile' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
   |                           |- warning: static property 'createFile' 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 'createFile' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'createFile' 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
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:21:27: warning: static property 'append' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
   |                           |- warning: static property 'append' 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 'append' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'append' 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
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
[9/11] Compiling FileUtils ReadFile.swift
[10/11] Emitting module FileUtils
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:21:27: warning: static property 'append' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
   |                           |- warning: static property 'append' 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 'append' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'append' 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
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:22:27: warning: static property 'clear' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
   |                           |- warning: static property 'clear' 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 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'clear' 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
23 |         public static var createFile = Mode(rawValue: 4)
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/Mode.swift:23:27: warning: static property 'createFile' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
   |                           |- warning: static property 'createFile' 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 'createFile' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'createFile' 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
24 |     }
25 | }
[11/11] Compiling FileUtils FileUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileUtils/FileUtils.swift:133:16: warning: will never be executed
131 |         guard
132 |             let cStringPointer: UnsafeMutablePointer<Int8> = pointer
133 |         else { throw fatalError("unknown error for path: \(path)\nPlease, check your path.\n") }
    |                |     `- note: a call to a never-returning function
    |                `- warning: will never be executed
134 |         defer { free(cStringPointer) }
135 |
Build complete! (19.11s)
Fetching https://github.com/nerzh/swift-regular-expression.git
[1/61] Fetching swift-regular-expression
Fetched https://github.com/nerzh/swift-regular-expression.git from cache (0.72s)
Computing version for https://github.com/nerzh/swift-regular-expression.git
Computed https://github.com/nerzh/swift-regular-expression.git at 0.2.2 (0.69s)
Creating working copy for https://github.com/nerzh/swift-regular-expression.git
Working copy of https://github.com/nerzh/swift-regular-expression.git resolved at 0.2.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-regular-expression",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nerzh/swift-regular-expression.git"
    }
  ],
  "manifest_display_name" : "FileUtils",
  "name" : "FileUtils",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FileUtils",
      "targets" : [
        "FileUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FileUtilsTests",
      "module_type" : "SwiftTarget",
      "name" : "FileUtilsTests",
      "path" : "Tests/FileUtilsTests",
      "sources" : [
        "FileUtilsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "FileUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FileUtils",
      "module_type" : "SwiftTarget",
      "name" : "FileUtils",
      "path" : "Sources/FileUtils",
      "product_dependencies" : [
        "SwiftRegularExpression"
      ],
      "product_memberships" : [
        "FileUtils"
      ],
      "sources" : [
        "FileReader.swift",
        "FileUtils.swift",
        "Mode.swift",
        "ReadFile.swift",
        "WriteFile.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.