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, reference 0.1.1 (bd29ba), with Swift 6.0 for Linux on 24 Sep 2024 14:02:12 UTC.

Swift 6 data race errors: 8

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.54.2
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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Adorkable/swift-log-format-and-pipe.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-log.git
[1/3587] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.1.0 (0.91s)
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling Logging Locks.swift
[5/7] Emitting module Logging
[6/7] Compiling Logging LogHandler.swift
[7/7] Compiling Logging Logging.swift
[9/14] Compiling LoggingFormatAndPipe LoggerTextOutputStreamPipe.swift
/host/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 | }
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:76:5: warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
74 | let systemStdout = Darwin.stdout
75 | #else
76 | let systemStderr = Glibc.stderr!
   |     |- warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') 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
77 | let systemStdout = Glibc.stdout!
78 | #endif
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)
/host/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 |
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:77:5: warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
75 | #else
76 | let systemStderr = Glibc.stderr!
77 | let systemStdout = Glibc.stdout!
   |     |- warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') 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
78 | #endif
79 |
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)
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:76:26: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
74 | let systemStdout = Darwin.stdout
75 | #else
76 | let systemStderr = Glibc.stderr!
   |                          `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
77 | let systemStdout = Glibc.stdout!
78 | #endif
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:77:26: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
75 | #else
76 | let systemStderr = Glibc.stderr!
77 | let systemStdout = Glibc.stdout!
   |                          `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
78 | #endif
79 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[10/14] Compiling LoggingFormatAndPipe Handler.swift
[11/14] Compiling LoggingFormatAndPipe Pipe.swift
[12/14] Compiling LoggingFormatAndPipe BasicFormatter.swift
/host/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,
/host/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,
[13/14] Emitting module LoggingFormatAndPipe
/host/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,
/host/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,
/host/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 | }
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:76:5: warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
74 | let systemStdout = Darwin.stdout
75 | #else
76 | let systemStderr = Glibc.stderr!
   |     |- warning: let 'systemStderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') 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
77 | let systemStdout = Glibc.stdout!
78 | #endif
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)
/host/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 |
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:77:5: warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
75 | #else
76 | let systemStderr = Glibc.stderr!
77 | let systemStdout = Glibc.stdout!
   |     |- warning: let 'systemStdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') 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
78 | #endif
79 |
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)
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:76:26: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
74 | let systemStdout = Darwin.stdout
75 | #else
76 | let systemStderr = Glibc.stderr!
   |                          `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
77 | let systemStdout = Glibc.stdout!
78 | #endif
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:77:26: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
75 | #else
76 | let systemStderr = Glibc.stderr!
77 | let systemStdout = Glibc.stdout!
   |                          `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
78 | #endif
79 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[14/14] Compiling LoggingFormatAndPipe Formatter.swift
Build complete! (15.97s)
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" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.