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, reference 1.3.2 (596947), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 23:55:44 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nerzh/SwiftFileUtils.git
Reference: 1.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nerzh/SwiftFileUtils
 * tag               1.3.2      -> FETCH_HEAD
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 1.3.2
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.69s)
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.65s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftfileutils",
      "name": "FileUtils",
      "url": "https://github.com/nerzh/SwiftFileUtils.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftFileUtils",
      "dependencies": [
        {
          "identity": "swift-regular-expression",
          "name": "SwiftRegularExpression",
          "url": "https://github.com/nerzh/swift-regular-expression.git",
          "version": "0.2.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-regular-expression",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/nerzh/SwiftFileUtils.git
[1/56] Fetching swiftfileutils
Fetched https://github.com/nerzh/SwiftFileUtils.git from cache (0.67s)
Fetching https://github.com/nerzh/swift-regular-expression.git from cache
Fetched https://github.com/nerzh/swift-regular-expression.git from cache (0.45s)
Computing version for https://github.com/nerzh/swift-regular-expression.git
Computed https://github.com/nerzh/swift-regular-expression.git at 0.2.4 (0.03s)
Creating working copy for https://github.com/nerzh/SwiftFileUtils.git
Working copy of https://github.com/nerzh/SwiftFileUtils.git resolved at 1.3.2 (596947e)
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.4
warning: '.resolve-product-dependencies': dependency 'swiftfileutils' is not used by any target
Found 1 product dependencies
  - SwiftRegularExpression
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nerzh/SwiftFileUtils.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.txt
[4/5] Compiling SwiftRegularExpression String+Regexp.swift
[5/5] Emitting module SwiftRegularExpression
[6/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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)
[7/11] Compiling FileUtils ReadFile.swift
[8/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 | }
[9/11] Compiling FileUtils FileReader.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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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! (7.22s)
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.