This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Adorkable/swift-log-format-and-pipe.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Adorkable/swift-log-format-and-pipe
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at aa23b8b Elaborate on docs and README (#5)
Cloned https://github.com/Adorkable/swift-log-format-and-pipe.git
Revision (git rev-parse @):
aa23b8bebf2c060ac0194715a6ed5c9af5f2d8bf
SUCCESS checkout https://github.com/Adorkable/swift-log-format-and-pipe.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Adorkable/swift-log-format-and-pipe.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[4/7] Compiling Logging Locks.swift
[5/7] Emitting module Logging
[6/7] Compiling Logging Logging.swift
[7/7] Compiling Logging LogHandler.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 Pipe.swift
[10/13] Compiling LoggingFormatAndPipe Handler.swift
[11/13] Compiling LoggingFormatAndPipe Formatter.swift
[12/13] Emitting module LoggingFormatAndPipe
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/BasicFormatter.swift:69: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]
    :
 67 |     ///
 68 |     /// `2019-07-30T13:49:07-0400 error: Test error message`
 69 |     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
 70 |         [
 71 |             .timestamp,
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/BasicFormatter.swift:87: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]
    :
 85 |     ///
 86 |     /// `2019-07-30T13:49:07-0400 ▶ error ▶ /asdf/swift-log-format-and-pipe/Tests/LoggingFormatAndPipeTests/FormatterTests.swift:25 ▶ testFormatter(_:) ▶ Test error message`
 87 |     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
 88 |         [
 89 |             .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:69: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]
    :
 67 |     ///
 68 |     /// `2019-07-30T13:49:07-0400 error: Test error message`
 69 |     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
 70 |         [
 71 |             .timestamp,
/Users/admin/builder/spi-builder-workspace/Sources/LoggingFormatAndPipe/BasicFormatter.swift:87: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]
    :
 85 |     ///
 86 |     /// `2019-07-30T13:49:07-0400 ▶ error ▶ /asdf/swift-log-format-and-pipe/Tests/LoggingFormatAndPipeTests/FormatterTests.swift:25 ▶ testFormatter(_:) ▶ Test error message`
 87 |     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
 88 |         [
 89 |             .timestamp,
Build complete! (20.89s)
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.12s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.1.0 (0.66s)
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
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.