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-log-format-and-pipe, reference 0.1.1 (bd29ba), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 00:50:01 UTC.

Swift 6 data race errors: 6

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/Adorkable/swift-log-format-and-pipe.git
Reference: 0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Adorkable/swift-log-format-and-pipe
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at bd29bad bump to 0.1.1
Cloned https://github.com/Adorkable/swift-log-format-and-pipe.git
Revision (git rev-parse @):
bd29badb9e6b18122ec10b84eed534db83cad279
SUCCESS checkout https://github.com/Adorkable/swift-log-format-and-pipe.git at 0.1.1
Fetching https://github.com/apple/swift-log.git
[1/3649] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.09s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.1.0 (0.70s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.1.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-log-format-and-pipe",
      "name": "swift-log-format-and-pipe",
      "url": "https://github.com/Adorkable/swift-log-format-and-pipe.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log-format-and-pipe",
      "dependencies": [
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Adorkable/swift-log-format-and-pipe.git
[1/165] Fetching swift-log-format-and-pipe
Fetched https://github.com/Adorkable/swift-log-format-and-pipe.git from cache (0.97s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.50s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.48s)
Creating working copy for https://github.com/Adorkable/swift-log-format-and-pipe.git
Working copy of https://github.com/Adorkable/swift-log-format-and-pipe.git resolved at 0.1.1 (bd29bad)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
warning: '.resolve-product-dependencies': dependency 'swift-log-format-and-pipe' is not used by any target
Found 1 product dependencies
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Adorkable/swift-log-format-and-pipe.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/7] Compiling Logging LogHandler.swift
[5/7] Compiling Logging Locks.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging Logging.swift
[8/13] Compiling LoggingFormatAndPipe LoggerTextOutputStreamPipe.swift
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:67:25: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ensures access to the underlying `FILE` is locked to prevent
51 | /// cross-thread interleaving of output.
52 | public struct StdioOutputStream: TextOutputStream {
   |               `- note: consider making struct 'StdioOutputStream' conform to the 'Sendable' protocol
53 |     /// File handler we're writing to
54 |     public let file: UnsafeMutablePointer<FILE>
   :
65 |     }
66 |
67 |     internal static let stderr = StdioOutputStream(file: systemStderr)
   |                         |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: annotate 'stderr' 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
68 |     internal static let stdout = StdioOutputStream(file: systemStdout)
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:73:5: warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
71 | // Prevent name clashes
72 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
73 | let systemStderr = Darwin.stderr
   |     |- warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'systemStderr' 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
74 | let systemStdout = Darwin.stdout
75 | #else
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:68:25: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ensures access to the underlying `FILE` is locked to prevent
51 | /// cross-thread interleaving of output.
52 | public struct StdioOutputStream: TextOutputStream {
   |               `- note: consider making struct 'StdioOutputStream' conform to the 'Sendable' protocol
53 |     /// File handler we're writing to
54 |     public let file: UnsafeMutablePointer<FILE>
   :
66 |
67 |     internal static let stderr = StdioOutputStream(file: systemStderr)
68 |     internal static let stdout = StdioOutputStream(file: systemStdout)
   |                         |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: annotate 'stdout' 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
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:74:5: warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
72 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
73 | let systemStderr = Darwin.stderr
74 | let systemStdout = Darwin.stdout
   |     |- warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'systemStdout' 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
75 | #else
76 | let systemStderr = Glibc.stderr!
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[9/13] Compiling LoggingFormatAndPipe Formatter.swift
[10/13] Compiling LoggingFormatAndPipe Pipe.swift
[11/13] Compiling LoggingFormatAndPipe Handler.swift
[12/13] Emitting module LoggingFormatAndPipe
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/BasicFormatter.swift:63:23: warning: static property 'apple' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// `BasicFormatter` does not need any setup and will automatically include all log components
13 | /// It can also be given a linear sequence of log components and it will build formatted logs in that order
14 | public struct BasicFormatter: Formatter {
   |               `- note: consider making struct 'BasicFormatter' conform to the 'Sendable' protocol
15 |     /// Log format sequential specification
16 |     public let format: [LogComponent]
   :
61 |
62 |     /// [apple/swift-log](https://github.com/apple/swift-log)'s log format
63 |     public static let apple = BasicFormatter(
   |                       |- warning: static property 'apple' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'apple' 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
64 |         [
65 |             .timestamp,
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/BasicFormatter.swift:75:23: warning: static property 'adorkable' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// `BasicFormatter` does not need any setup and will automatically include all log components
13 | /// It can also be given a linear sequence of log components and it will build formatted logs in that order
14 | public struct BasicFormatter: Formatter {
   |               `- note: consider making struct 'BasicFormatter' conform to the 'Sendable' protocol
15 |     /// Log format sequential specification
16 |     public let format: [LogComponent]
   :
73 |
74 |     /// Adorkable's go-to log format 😘
75 |     public static let adorkable = BasicFormatter(
   |                       |- warning: static property 'adorkable' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'adorkable' 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
76 |         [
77 |             .timestamp,
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:67:25: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ensures access to the underlying `FILE` is locked to prevent
51 | /// cross-thread interleaving of output.
52 | public struct StdioOutputStream: TextOutputStream {
   |               `- note: consider making struct 'StdioOutputStream' conform to the 'Sendable' protocol
53 |     /// File handler we're writing to
54 |     public let file: UnsafeMutablePointer<FILE>
   :
65 |     }
66 |
67 |     internal static let stderr = StdioOutputStream(file: systemStderr)
   |                         |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: annotate 'stderr' 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
68 |     internal static let stdout = StdioOutputStream(file: systemStdout)
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:73:5: warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
71 | // Prevent name clashes
72 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
73 | let systemStderr = Darwin.stderr
   |     |- warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'systemStderr' 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
74 | let systemStdout = Darwin.stdout
75 | #else
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:68:25: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ensures access to the underlying `FILE` is locked to prevent
51 | /// cross-thread interleaving of output.
52 | public struct StdioOutputStream: TextOutputStream {
   |               `- note: consider making struct 'StdioOutputStream' conform to the 'Sendable' protocol
53 |     /// File handler we're writing to
54 |     public let file: UnsafeMutablePointer<FILE>
   :
66 |
67 |     internal static let stderr = StdioOutputStream(file: systemStderr)
68 |     internal static let stdout = StdioOutputStream(file: systemStdout)
   |                         |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'StdioOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: annotate 'stdout' 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
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:74:5: warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
72 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
73 | let systemStderr = Darwin.stderr
74 | let systemStdout = Darwin.stdout
   |     |- warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'systemStdout' 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
75 | #else
76 | let systemStderr = Glibc.stderr!
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[13/13] Compiling LoggingFormatAndPipe BasicFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/BasicFormatter.swift:63:23: warning: static property 'apple' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// `BasicFormatter` does not need any setup and will automatically include all log components
13 | /// It can also be given a linear sequence of log components and it will build formatted logs in that order
14 | public struct BasicFormatter: Formatter {
   |               `- note: consider making struct 'BasicFormatter' conform to the 'Sendable' protocol
15 |     /// Log format sequential specification
16 |     public let format: [LogComponent]
   :
61 |
62 |     /// [apple/swift-log](https://github.com/apple/swift-log)'s log format
63 |     public static let apple = BasicFormatter(
   |                       |- warning: static property 'apple' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'apple' 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
64 |         [
65 |             .timestamp,
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/BasicFormatter.swift:75:23: warning: static property 'adorkable' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// `BasicFormatter` does not need any setup and will automatically include all log components
13 | /// It can also be given a linear sequence of log components and it will build formatted logs in that order
14 | public struct BasicFormatter: Formatter {
   |               `- note: consider making struct 'BasicFormatter' conform to the 'Sendable' protocol
15 |     /// Log format sequential specification
16 |     public let format: [LogComponent]
   :
73 |
74 |     /// Adorkable's go-to log format 😘
75 |     public static let adorkable = BasicFormatter(
   |                       |- warning: static property 'adorkable' is not concurrency-safe because non-'Sendable' type 'BasicFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'adorkable' 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
76 |         [
77 |             .timestamp,
Build complete! (8.18s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "swift-log-format-and-pipe",
  "name" : "swift-log-format-and-pipe",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LoggingFormatAndPipe",
      "targets" : [
        "LoggingFormatAndPipe"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggingFormatAndPipeTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggingFormatAndPipeTests",
      "path" : "Tests/LoggingFormatAndPipeTests",
      "product_dependencies" : [
        "Logging"
      ],
      "sources" : [
        "FormatterTests.swift",
        "HandlerTests.swift",
        "LoggerTextOutputStreamPipeTests.swift",
        "TestLogging.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "LoggingFormatAndPipe"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggingFormatAndPipe",
      "module_type" : "SwiftTarget",
      "name" : "LoggingFormatAndPipe",
      "path" : "Sources/LoggingFormatAndPipe",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "LoggingFormatAndPipe"
      ],
      "sources" : [
        "BasicFormatter.swift",
        "Formatter.swift",
        "Handler.swift",
        "LoggerTextOutputStreamPipe.swift",
        "Pipe.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.