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

Swift 6 data race errors: 1

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/binaryscraping/swift-log-supabase.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/binaryscraping/swift-log-supabase
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b16c693 Update README.md
Cloned https://github.com/binaryscraping/swift-log-supabase.git
Revision (git rev-parse @):
b16c693ce4952b5cfc7be595e45213cebc1979d0
SUCCESS checkout https://github.com/binaryscraping/swift-log-supabase.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/binaryscraping/swift-log-supabase.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] Emitting module Logging
[5/7] Compiling Logging LogHandler.swift
[6/7] Compiling Logging Locks.swift
[7/7] Compiling Logging Logging.swift
[8/11] Compiling SupabaseLogging LogsCache.swift
[9/11] Emitting module SupabaseLogging
/Users/admin/builder/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:74:22: warning: static property 'instances' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 72 |   private static let queue = DispatchQueue(
 73 |     label: "co.binaryscraping.supabase-log-manager.instances")
 74 |   private static var instances: [SupabaseLogConfig: SupabaseLogManager] = [:]
    |                      |- warning: static property 'instances' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'instances' 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 |
 76 |   static func shared(_ config: SupabaseLogConfig) -> SupabaseLogManager {
[10/11] Compiling SupabaseLogging LogEntry.swift
[11/11] Compiling SupabaseLogging SupabaseLogHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:74:22: warning: static property 'instances' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 72 |   private static let queue = DispatchQueue(
 73 |     label: "co.binaryscraping.supabase-log-manager.instances")
 74 |   private static var instances: [SupabaseLogConfig: SupabaseLogManager] = [:]
    |                      |- warning: static property 'instances' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'instances' 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 |
 76 |   static func shared(_ config: SupabaseLogConfig) -> SupabaseLogManager {
/Users/admin/builder/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:162:12: warning: capture of 'self' with non-sendable type 'SupabaseLogManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 62 | }
 63 |
 64 | final class SupabaseLogManager {
    |             `- note: class 'SupabaseLogManager' does not conform to the 'Sendable' protocol
 65 |
 66 |   let cache: LogsCache<LogEntry>
    :
160 |         }
161 |       } catch {
162 |         if self.config.isDebug {
    |            `- warning: capture of 'self' with non-sendable type 'SupabaseLogManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 |           print(error)
164 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:167:25: warning: capture of 'logs' with non-sendable type '[LogEntry]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
165 |
166 |         // An error ocurred, put logs back in cache.
167 |         self.cache.push(logs)
    |                         `- warning: capture of 'logs' with non-sendable type '[LogEntry]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |       }
169 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SupabaseLogging/LogEntry.swift:4:8: note: consider making struct 'LogEntry' conform to the 'Sendable' protocol
 2 | import Logging
 3 |
 4 | struct LogEntry: Codable {
   |        `- note: consider making struct 'LogEntry' conform to the 'Sendable' protocol
 5 |   let label: String
 6 |   let file: String
Build complete! (26.79s)
Fetching https://github.com/apple/swift-log
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (1.08s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.4.2 (0.66s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.4.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    }
  ],
  "manifest_display_name" : "swift-log-supabase",
  "name" : "swift-log-supabase",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "SupabaseLogging",
      "targets" : [
        "SupabaseLogging"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SupabaseLoggingTests",
      "module_type" : "SwiftTarget",
      "name" : "SupabaseLoggingTests",
      "path" : "Tests/SupabaseLoggingTests",
      "sources" : [
        "SupabaseLogHandlerTests.swift"
      ],
      "target_dependencies" : [
        "SupabaseLogging"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SupabaseLogging",
      "module_type" : "SwiftTarget",
      "name" : "SupabaseLogging",
      "path" : "Sources/SupabaseLogging",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "SupabaseLogging"
      ],
      "sources" : [
        "LogEntry.swift",
        "LogsCache.swift",
        "SupabaseLogHandler.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.