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 sls, reference v1.0.3 (0f1799), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 06:58:40 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maclong9/swift-list.git
Reference: v1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maclong9/swift-list
 * tag               v1.0.3     -> FETCH_HEAD
HEAD is now at 0f17999 feat(SwiftList): added default values to all flags, allowing less parameters in testing. feat(SwiftList): formatted links and size so they don't push other information.
Cloned https://github.com/maclong9/swift-list.git
Revision (git rev-parse @):
0f17999f99be24008cc54a57b5150de5c9d7dc43
SUCCESS checkout https://github.com/maclong9/swift-list.git at v1.0.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/maclong9/swift-list.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/9] Write sources
[4/9] Write sls-entitlement.plist
[5/9] Write swift-version-117DEE11B69C53C9.txt
[7/11] Emitting module ArgumentParserToolInfo
[8/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/49] Compiling ArgumentParser InputOrigin.swift
[10/49] Compiling ArgumentParser Name.swift
[11/49] Compiling ArgumentParser Parsed.swift
[12/49] Compiling ArgumentParser ParsedValues.swift
[13/53] Compiling ArgumentParser BashCompletionsGenerator.swift
[14/53] Compiling ArgumentParser CompletionsGenerator.swift
[15/53] Compiling ArgumentParser FishCompletionsGenerator.swift
[16/53] Compiling ArgumentParser ZshCompletionsGenerator.swift
[17/53] Compiling ArgumentParser Argument.swift
[18/53] Emitting module ArgumentParser
[19/53] Compiling ArgumentParser ArgumentHelp.swift
[20/53] Compiling ArgumentParser ArgumentVisibility.swift
[21/53] Compiling ArgumentParser CompletionKind.swift
[22/53] Compiling ArgumentParser Errors.swift
[23/53] Compiling ArgumentParser ArgumentDefinition.swift
[24/53] Compiling ArgumentParser ArgumentSet.swift
[25/53] Compiling ArgumentParser CommandParser.swift
[26/53] Compiling ArgumentParser InputKey.swift
[27/53] Compiling ArgumentParser Platform.swift
[28/53] Compiling ArgumentParser SequenceExtensions.swift
[29/53] Compiling ArgumentParser StringExtensions.swift
[30/53] Compiling ArgumentParser Tree.swift
[31/53] Compiling ArgumentParser ParsableArguments.swift
[32/53] Compiling ArgumentParser ParsableArgumentsValidation.swift
[33/53] Compiling ArgumentParser ParsableCommand.swift
[34/53] Compiling ArgumentParser ArgumentDecoder.swift
[35/53] Compiling ArgumentParser ParserError.swift
[36/53] Compiling ArgumentParser SplitArguments.swift
[37/53] Compiling ArgumentParser DumpHelpGenerator.swift
[38/53] Compiling ArgumentParser HelpCommand.swift
[39/53] Compiling ArgumentParser Flag.swift
[40/53] Compiling ArgumentParser NameSpecification.swift
[41/53] Compiling ArgumentParser Option.swift
[42/53] Compiling ArgumentParser OptionGroup.swift
[43/53] Compiling ArgumentParser AsyncParsableCommand.swift
[44/53] Compiling ArgumentParser CommandConfiguration.swift
[45/53] Compiling ArgumentParser EnumerableFlag.swift
[46/53] Compiling ArgumentParser ExpressibleByArgument.swift
[47/53] Compiling ArgumentParser HelpGenerator.swift
[48/53] Compiling ArgumentParser MessageInfo.swift
[49/53] Compiling ArgumentParser UsageGenerator.swift
[50/53] Compiling ArgumentParser CollectionExtensions.swift
[51/55] Compiling sls SwiftList.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:27:5: warning: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | }
 26 |
 27 | let files = FileManager.default
    |     |- warning: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'files' 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
 28 |
 29 | class FileManagerHelper {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:30:16: warning: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | class FileManagerHelper {
 30 |     static let fm = FileManager.default
    |                |- warning: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'fm' 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
 31 |
 32 |     static func determineType(of location: URL) throws -> FileRepresentation {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[52/55] Emitting module sls
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:27:5: warning: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | }
 26 |
 27 | let files = FileManager.default
    |     |- warning: let 'files' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'files' 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
 28 |
 29 | class FileManagerHelper {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftList.swift:30:16: warning: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | class FileManagerHelper {
 30 |     static let fm = FileManager.default
    |                |- warning: static property 'fm' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'fm' 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
 31 |
 32 |     static func determineType(of location: URL) throws -> FileRepresentation {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[52/55] Write Objects.LinkFileList
[53/55] Linking sls
[54/55] Applying sls
Build complete! (17.97s)
Fetching https://github.com/apple/swift-argument-parser
[1/12169] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.56s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.4.0 (0.50s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.4.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "sls",
  "name" : "sls",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "sls",
      "targets" : [
        "sls"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "sls",
      "module_type" : "SwiftTarget",
      "name" : "sls",
      "path" : "Sources",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "sls"
      ],
      "sources" : [
        "SwiftList.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SwiftListTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftListTests",
      "path" : "Tests",
      "sources" : [
        "SwiftListTests.swift"
      ],
      "target_dependencies" : [
        "sls"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.10"
}
Done.