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 Linux.

Swift 6 data race errors: 3

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/nerzh/SwiftFileUtils.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/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:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/nerzh/SwiftFileUtils.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/nerzh/swift-regular-expression.git
[1/61] Fetching swift-regular-expression
Fetched https://github.com/nerzh/swift-regular-expression.git from cache (0.18s)
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.42s)
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module SwiftRegularExpression
[5/5] Compiling SwiftRegularExpression String+Regexp.swift
[7/12] Compiling FileUtils ReadFile.swift
[8/12] Compiling FileUtils Mode.swift
/host/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)
/host/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 |     }
/host/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 | }
[9/12] Compiling FileUtils WriteFile.swift
/host/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 |     }
/host/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 | }
/host/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)
[10/12] Compiling FileUtils FileUtils.swift
/host/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 |
[11/12] Emitting module FileUtils
/host/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)
/host/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 |     }
/host/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 | }
[12/12] Compiling FileUtils FileReader.swift
Build complete! (10.06s)
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" : "/host/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.