The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Log, reference 1.0.8 (796bd0), with Swift 6.1 for Android on 27 May 2025 23:04:53 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brutella/log-swift.git
Reference: 1.0.8
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/brutella/log-swift
 * tag               1.0.8      -> FETCH_HEAD
HEAD is now at 796bd0b Merge pull request #2 from jvigneshcs/master
Cloned https://github.com/brutella/log-swift.git
Revision (git rev-parse @):
796bd0b043b46554a3083a81b752741726a8c1ad
SUCCESS checkout https://github.com/brutella/log-swift.git at 1.0.8
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/brutella/log-swift.git
https://github.com/brutella/log-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Log",
  "name" : "Log",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Log",
      "targets" : [
        "Log"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LogTests",
      "module_type" : "SwiftTarget",
      "name" : "LogTests",
      "path" : "Tests/LogTests",
      "sources" : [
        "LoggerTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Log"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Log",
      "module_type" : "SwiftTarget",
      "name" : "Log",
      "path" : "Sources/Log",
      "product_memberships" : [
        "Log"
      ],
      "sources" : [
        "Log.swift",
        "Logger.swift",
        "Println.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Log Println.swift
/host/spi-builder-workspace/Sources/Log/Println.swift:21:5: warning: var '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var _dateFormatter: DateFormatter?
   |     |- warning: var '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert '_dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var '_dateFormatter' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | func dateFormatter() -> DateFormatter {
23 |     if _dateFormatter == nil {
[4/6] Compiling Log Logger.swift
/host/spi-builder-workspace/Sources/Log/Logger.swift:119:13: warning: let '_sharedInstance' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
117 | }
118 |
119 | private let _sharedInstance = Logger()
    |             |- warning: let '_sharedInstance' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_sharedInstance' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | public class Logger {
    |              `- note: class 'Logger' does not conform to the 'Sendable' protocol
121 |     public class var sharedInstance: Logger {
122 |         return _sharedInstance
/host/spi-builder-workspace/Sources/Log/Logger.swift:63:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 61 |             let fileManager = FileManager.default
 62 |             if !fileManager.fileExists(atPath: filePath) {
 63 |                 fileManager.createFile(atPath: filePath, contents: nil, attributes: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 64 |             }
 65 |
/host/spi-builder-workspace/Sources/Log/Logger.swift:105:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
103 |             let fileManager = FileManager.default
104 |             if !fileManager.fileExists(atPath: url.absoluteString) {
105 |                 fileManager.createFile(atPath: url.absoluteString, contents: nil, attributes: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
106 |             }
107 |
[5/6] Compiling Log Log.swift
/host/spi-builder-workspace/Sources/Log/Log.swift:12:12: warning: var 'LogDirectoryName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | fileprivate let _fileManager = FileManager()
12 | public var LogDirectoryName = "Logs"
   |            |- warning: var 'LogDirectoryName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'LogDirectoryName' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'LogDirectoryName' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public struct Logging {
[6/6] Emitting module Log
/host/spi-builder-workspace/Sources/Log/Log.swift:12:12: warning: var 'LogDirectoryName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | fileprivate let _fileManager = FileManager()
12 | public var LogDirectoryName = "Logs"
   |            |- warning: var 'LogDirectoryName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'LogDirectoryName' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'LogDirectoryName' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public struct Logging {
/host/spi-builder-workspace/Sources/Log/Logger.swift:119:13: warning: let '_sharedInstance' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
117 | }
118 |
119 | private let _sharedInstance = Logger()
    |             |- warning: let '_sharedInstance' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_sharedInstance' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | public class Logger {
    |              `- note: class 'Logger' does not conform to the 'Sendable' protocol
121 |     public class var sharedInstance: Logger {
122 |         return _sharedInstance
/host/spi-builder-workspace/Sources/Log/Println.swift:21:5: warning: var '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | var _dateFormatter: DateFormatter?
   |     |- warning: var '_dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert '_dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var '_dateFormatter' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | func dateFormatter() -> DateFormatter {
23 |     if _dateFormatter == nil {
Build complete! (8.93s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Log",
  "name" : "Log",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Log",
      "targets" : [
        "Log"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LogTests",
      "module_type" : "SwiftTarget",
      "name" : "LogTests",
      "path" : "Tests/LogTests",
      "sources" : [
        "LoggerTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Log"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Log",
      "module_type" : "SwiftTarget",
      "name" : "Log",
      "path" : "Sources/Log",
      "product_memberships" : [
        "Log"
      ],
      "sources" : [
        "Log.swift",
        "Logger.swift",
        "Println.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.