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 Swift-Hotfolder, reference main (df796f), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 22:10:08 UTC.

Swift 6 data race errors: 0

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CodebyCR/Swift-Hotfolder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CodebyCR/Swift-Hotfolder
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at df796f6 Update README.md
Cloned https://github.com/CodebyCR/Swift-Hotfolder.git
Revision (git rev-parse @):
df796f67d050dcd6ffc07002f087132830f8d462
SUCCESS checkout https://github.com/CodebyCR/Swift-Hotfolder.git at main
========================================
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-hotfolder",
      "name": "Swift-Hotfolder",
      "url": "https://github.com/CodebyCR/Swift-Hotfolder.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swift-Hotfolder",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/CodebyCR/Swift-Hotfolder.git
[1/435] Fetching swift-hotfolder
Fetched https://github.com/CodebyCR/Swift-Hotfolder.git from cache (0.94s)
Creating working copy for https://github.com/CodebyCR/Swift-Hotfolder.git
Working copy of https://github.com/CodebyCR/Swift-Hotfolder.git resolved at main (df796f6)
warning: '.resolve-product-dependencies': dependency 'swift-hotfolder' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/CodebyCR/Swift-Hotfolder.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Swift-Hotfolder",
  "name" : "Swift-Hotfolder",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "Swift-Hotfolder",
      "targets" : [
        "Swift-Hotfolder"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Swift_HotfolderTests",
      "module_type" : "SwiftTarget",
      "name" : "Swift-HotfolderTests",
      "path" : "Tests/Swift-HotfolderTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/Swift-HotfolderTests/Resources/watcher_config.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "HotfolderWatcherTests.swift",
        "InitWatcherConfigTests.swift"
      ],
      "target_dependencies" : [
        "Swift-Hotfolder"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Swift_Hotfolder",
      "module_type" : "SwiftTarget",
      "name" : "Swift-Hotfolder",
      "path" : "Sources/Swift-Hotfolder",
      "product_memberships" : [
        "Swift-Hotfolder"
      ],
      "sources" : [
        "actors/HotfolderWatcher.swift",
        "actors/errors/HotfolderWatcherError.swift",
        "enumerations/Change.swift",
        "extension/DirectoryEnumerationOptions.swift",
        "structs/Hotfolder.swift",
        "structs/WatcherConfig.swift",
        "structs/errors/WatcherConfigError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/10] Compiling Swift_Hotfolder HotfolderWatcherError.swift
[4/10] Compiling Swift_Hotfolder WatcherConfigError.swift
[5/10] Compiling Swift_Hotfolder HotfolderWatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift-Hotfolder/structs/WatcherConfig.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'WatcherConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct WatcherConfig: Codable {
   |               `- note: consider making struct 'WatcherConfig' conform to the 'Sendable' protocol
11 |     let createNonExistingFolders: Bool
12 |     let watchInterval: Double
   :
30 |     }
31 |
32 |     public static let `default` = WatcherConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'WatcherConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |
34 |     /// For maybe **unsafe** WatcherConfig created be the user of the framework.
[6/10] Compiling Swift_Hotfolder Hotfolder.swift
[7/10] Emitting module Swift_Hotfolder
/Users/admin/builder/spi-builder-workspace/Sources/Swift-Hotfolder/structs/WatcherConfig.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'WatcherConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct WatcherConfig: Codable {
   |               `- note: consider making struct 'WatcherConfig' conform to the 'Sendable' protocol
11 |     let createNonExistingFolders: Bool
12 |     let watchInterval: Double
   :
30 |     }
31 |
32 |     public static let `default` = WatcherConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'WatcherConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |
34 |     /// For maybe **unsafe** WatcherConfig created be the user of the framework.
[8/10] Compiling Swift_Hotfolder Change.swift
[9/10] Compiling Swift_Hotfolder WatcherConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swift-Hotfolder/structs/WatcherConfig.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'WatcherConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct WatcherConfig: Codable {
   |               `- note: consider making struct 'WatcherConfig' conform to the 'Sendable' protocol
11 |     let createNonExistingFolders: Bool
12 |     let watchInterval: Double
   :
30 |     }
31 |
32 |     public static let `default` = WatcherConfig()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'WatcherConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |
34 |     /// For maybe **unsafe** WatcherConfig created be the user of the framework.
[10/10] Compiling Swift_Hotfolder DirectoryEnumerationOptions.swift
Build complete! (9.12s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Swift-Hotfolder",
  "name" : "Swift-Hotfolder",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "Swift-Hotfolder",
      "targets" : [
        "Swift-Hotfolder"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Swift_HotfolderTests",
      "module_type" : "SwiftTarget",
      "name" : "Swift-HotfolderTests",
      "path" : "Tests/Swift-HotfolderTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/Swift-HotfolderTests/Resources/watcher_config.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "HotfolderWatcherTests.swift",
        "InitWatcherConfigTests.swift"
      ],
      "target_dependencies" : [
        "Swift-Hotfolder"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Swift_Hotfolder",
      "module_type" : "SwiftTarget",
      "name" : "Swift-Hotfolder",
      "path" : "Sources/Swift-Hotfolder",
      "product_memberships" : [
        "Swift-Hotfolder"
      ],
      "sources" : [
        "actors/HotfolderWatcher.swift",
        "actors/errors/HotfolderWatcherError.swift",
        "enumerations/Change.swift",
        "extension/DirectoryEnumerationOptions.swift",
        "structs/Hotfolder.swift",
        "structs/WatcherConfig.swift",
        "structs/errors/WatcherConfigError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.