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 FileMonitor, reference main (ef22f1), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:20:42 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aus-der-Technik/FileMonitor.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aus-der-Technik/FileMonitor
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ef22f14 Adds support for AsyncStream (#4)
Cloned https://github.com/aus-der-Technik/FileMonitor.git
Revision (git rev-parse @):
ef22f1487d07fbff0a7a5f743d42611bfd03b5e8
SUCCESS checkout https://github.com/aus-der-Technik/FileMonitor.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": "filemonitor",
      "name": "FileMonitor",
      "url": "https://github.com/aus-der-Technik/FileMonitor.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FileMonitor",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/aus-der-Technik/FileMonitor.git
[1/350] Fetching filemonitor
Fetched https://github.com/aus-der-Technik/FileMonitor.git from cache (0.78s)
Creating working copy for https://github.com/aus-der-Technik/FileMonitor.git
Working copy of https://github.com/aus-der-Technik/FileMonitor.git resolved at main (ef22f14)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/aus-der-Technik/FileMonitor.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/14] Write sources
[4/14] Write FileMonitorDelegateExample-entitlement.plist
[4/14] Write sources
[5/14] Write FileMonitorAsyncStreamExample-entitlement.plist
[7/14] Write swift-version--7754E27361AE5C74.txt
[9/18] Emitting module FileMonitorShared
[10/18] Compiling FileMonitorShared Watcher.swift
[11/18] Compiling FileMonitorShared URL+isDirectory.swift
[12/18] Compiling FileMonitorShared FileChangeEvent.swift
[13/24] Compiling FileMonitorMacOS FileWatcherEvent.swift
[14/24] Compiling FileMonitorMacOS MacosWatcher.swift
[15/24] Compiling FileMonitorMacOS FileWatcher+Action.swift
[16/24] Compiling FileMonitorMacOS FileWatcher+Type.swift
[17/24] Emitting module FileMonitorMacOS
[18/24] Compiling FileMonitorMacOS FileWatcher.swift
[19/27] Compiling FileMonitor FileMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileMonitor/FileMonitor.swift:84:39: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
82 |     public func fileDidChanged(event: FileChangeEvent) {
83 |         delegate?.fileDidChanged(event: event)
84 |         fileChangeStream.continuation.yield(event)
   |                                       |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
   |                                       `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
85 |     }
86 |
[20/27] Compiling FileMonitor FileDidChangedDelegate.swift
[21/27] Emitting module FileMonitor
[22/31] Emitting module FileMonitorAsyncStreamExample
[23/31] Emitting module FileMonitorDelegateExample
[24/31] Compiling FileMonitorAsyncStreamExample FileMonitorAsyncStreamExample.swift
[25/31] Compiling FileMonitorDelegateExample FileMonitorDelegateExample.swift
[25/31] Write Objects.LinkFileList
[27/31] Linking FileMonitorDelegateExample
[28/31] Linking FileMonitorAsyncStreamExample
[29/31] Applying FileMonitorDelegateExample
[30/31] Applying FileMonitorAsyncStreamExample
Build complete! (14.77s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FileMonitor",
  "name" : "FileMonitor",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "FileMonitor",
      "targets" : [
        "FileMonitor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "FileMonitorDelegateExample",
      "targets" : [
        "FileMonitorDelegateExample"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "FileMonitorAsyncStreamExample",
      "targets" : [
        "FileMonitorAsyncStreamExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FileMonitorTests",
      "module_type" : "SwiftTarget",
      "name" : "FileMonitorTests",
      "path" : "Tests/FileMonitorTests",
      "sources" : [
        "Extensions/String+Random.swift",
        "FileMonitorExplicitAddTests.swift",
        "FileMonitorExplicitChangeTests.swift",
        "FileMonitorExplicitDeleteTests.swift",
        "FileMonitorFileHasPathTests.swift",
        "FileMonitorTests.swift"
      ],
      "target_dependencies" : [
        "FileMonitor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FileMonitorShared",
      "module_type" : "SwiftTarget",
      "name" : "FileMonitorShared",
      "path" : "Sources/FileMonitorShared",
      "product_memberships" : [
        "FileMonitor",
        "FileMonitorDelegateExample",
        "FileMonitorAsyncStreamExample"
      ],
      "sources" : [
        "FileChangeEvent.swift",
        "URL+isDirectory.swift",
        "Watcher.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FileMonitorMacOS",
      "module_type" : "SwiftTarget",
      "name" : "FileMonitorMacOS",
      "path" : "Sources/FileMonitorMacOS",
      "product_memberships" : [
        "FileMonitor",
        "FileMonitorDelegateExample",
        "FileMonitorAsyncStreamExample"
      ],
      "sources" : [
        "FileWatcher+Action.swift",
        "FileWatcher+Type.swift",
        "FileWatcher.swift",
        "FileWatcherEvent.swift",
        "MacosWatcher.swift"
      ],
      "target_dependencies" : [
        "FileMonitorShared"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FileMonitorLinux",
      "module_type" : "SwiftTarget",
      "name" : "FileMonitorLinux",
      "path" : "Sources/FileMonitorLinux",
      "product_memberships" : [
        "FileMonitor",
        "FileMonitorDelegateExample",
        "FileMonitorAsyncStreamExample"
      ],
      "sources" : [
        "FileSystemWatcher.swift",
        "InotifyEvent.swift",
        "LinuxWatcher.swift"
      ],
      "target_dependencies" : [
        "CInotify",
        "FileMonitorShared"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FileMonitorDelegateExample",
      "module_type" : "SwiftTarget",
      "name" : "FileMonitorDelegateExample",
      "path" : "Sources/FileMonitorDelegateExample",
      "product_memberships" : [
        "FileMonitorDelegateExample"
      ],
      "sources" : [
        "FileMonitorDelegateExample.swift"
      ],
      "target_dependencies" : [
        "FileMonitor"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "FileMonitorAsyncStreamExample",
      "module_type" : "SwiftTarget",
      "name" : "FileMonitorAsyncStreamExample",
      "path" : "Sources/FileMonitorAsyncStreamExample",
      "product_memberships" : [
        "FileMonitorAsyncStreamExample"
      ],
      "sources" : [
        "FileMonitorAsyncStreamExample.swift"
      ],
      "target_dependencies" : [
        "FileMonitor"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "FileMonitor",
      "module_type" : "SwiftTarget",
      "name" : "FileMonitor",
      "path" : "Sources/FileMonitor",
      "product_memberships" : [
        "FileMonitor",
        "FileMonitorDelegateExample",
        "FileMonitorAsyncStreamExample"
      ],
      "sources" : [
        "FileDidChangedDelegate.swift",
        "FileMonitor.swift"
      ],
      "target_dependencies" : [
        "FileMonitorShared",
        "FileMonitorMacOS",
        "FileMonitorLinux"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CInotify",
      "module_type" : "SystemLibraryTarget",
      "name" : "CInotify",
      "path" : "Sources/Inotify",
      "product_memberships" : [
        "FileMonitor",
        "FileMonitorDelegateExample",
        "FileMonitorAsyncStreamExample"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.9"
}
Done.