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 5 Nov 2024 06:52:48 UTC.

Swift 6 data race errors: 2

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/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
Fetching https://github.com/apple/swift-argument-parser
[1/12353] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.63s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.4.0 (0.55s)
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
========================================
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": "swift-list",
      "name": "sls",
      "url": "https://github.com/maclong9/swift-list.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-list",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "1.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/maclong9/swift-list.git
[1/359] Fetching swift-list
Fetched https://github.com/maclong9/swift-list.git from cache (1.06s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.60s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.03s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/maclong9/swift-list.git
Working copy of https://github.com/maclong9/swift-list.git resolved at v1.0.3 (0f17999)
Found 1 product dependencies
  - swift-argument-parser
========================================
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.1.0.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
[3/9] Write sls-entitlement.plist
[5/9] Write swift-version--7754E27361AE5C74.txt
[7/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/11] Emitting module ArgumentParserToolInfo
[9/49] Compiling ArgumentParser AsyncParsableCommand.swift
[10/49] Compiling ArgumentParser CommandConfiguration.swift
[11/49] Compiling ArgumentParser EnumerableFlag.swift
[12/49] Compiling ArgumentParser ExpressibleByArgument.swift
[13/53] Emitting module ArgumentParser
[14/53] Compiling ArgumentParser ArgumentHelp.swift
[15/53] Compiling ArgumentParser ArgumentVisibility.swift
[16/53] Compiling ArgumentParser CompletionKind.swift
[17/53] Compiling ArgumentParser Errors.swift
[18/53] Compiling ArgumentParser Flag.swift
[19/53] Compiling ArgumentParser NameSpecification.swift
[20/53] Compiling ArgumentParser Option.swift
[21/53] Compiling ArgumentParser OptionGroup.swift
[22/53] Compiling ArgumentParser ArgumentDefinition.swift
[23/53] Compiling ArgumentParser ArgumentSet.swift
[24/53] Compiling ArgumentParser CommandParser.swift
[25/53] Compiling ArgumentParser InputKey.swift
[26/53] Compiling ArgumentParser InputOrigin.swift
[27/53] Compiling ArgumentParser Name.swift
[28/53] Compiling ArgumentParser Parsed.swift
[29/53] Compiling ArgumentParser ParsedValues.swift
[30/53] Compiling ArgumentParser Platform.swift
[31/53] Compiling ArgumentParser SequenceExtensions.swift
[32/53] Compiling ArgumentParser StringExtensions.swift
[33/53] Compiling ArgumentParser Tree.swift
[34/53] Compiling ArgumentParser ParserError.swift
[35/53] Compiling ArgumentParser SplitArguments.swift
[36/53] Compiling ArgumentParser DumpHelpGenerator.swift
[37/53] Compiling ArgumentParser HelpCommand.swift
[38/53] Compiling ArgumentParser BashCompletionsGenerator.swift
[39/53] Compiling ArgumentParser CompletionsGenerator.swift
[40/53] Compiling ArgumentParser FishCompletionsGenerator.swift
[41/53] Compiling ArgumentParser ZshCompletionsGenerator.swift
[42/53] Compiling ArgumentParser Argument.swift
[43/53] Compiling ArgumentParser HelpGenerator.swift
[44/53] Compiling ArgumentParser MessageInfo.swift
[45/53] Compiling ArgumentParser UsageGenerator.swift
[46/53] Compiling ArgumentParser CollectionExtensions.swift
[47/53] Compiling ArgumentParser ParsableArguments.swift
[48/53] Compiling ArgumentParser ParsableArgumentsValidation.swift
[49/53] Compiling ArgumentParser ParsableCommand.swift
[50/53] Compiling ArgumentParser ArgumentDecoder.swift
[51/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] 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] Write Objects.LinkFileList
[53/55] Linking sls
[54/55] Applying sls
Build complete! (15.32s)
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.