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-secrecy 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/mattia/swift-secrecy.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mattia/swift-secrecy
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 63bb4a5 Add manual dispatch to CI
Cloned https://github.com/mattia/swift-secrecy.git
Revision (git rev-parse @):
63bb4a5546d2463ebde86928594e0fe6c47ecb56
SUCCESS checkout https://github.com/mattia/swift-secrecy.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mattia/swift-secrecy.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/8] Compiling Secrecy Secret+Encodable.swift
[4/8] Compiling Secrecy Secret.swift
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret.swift:27:33: warning: generic parameter 'Wrapped' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 1 | /// A type that wraps a value which should not be exposed lightly.
 2 | @propertyWrapper
 3 | public struct Secret<Wrapped> {
   |                      `- note: 'Wrapped' previously declared here
 4 |   /// The value that should be treated with care.
 5 |   private let value: Wrapped
   :
25 |   }
26 |
27 |   public struct UnwrappedSecret<Wrapped> {
   |                                 `- warning: generic parameter 'Wrapped' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
28 |     public let value: Wrapped
29 |
[5/8] Compiling Secrecy Redactor.swift
[6/8] Compiling Secrecy Secret+Literal.swift
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:67:20: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 | where Element: InitializableByLiteralType {
 66 |   public var anonymizeValues: @Sendable () -> Array<Element> {
 67 |     { @Sendable in map(Element.redactor.redact) }
    |                    `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |   }
 69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:111:7: warning: capture of 'self' with non-sendable type 'Dictionary<Key, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 |   public var anonymizeValues: @Sendable () -> Dictionary<Key, Value> {
110 |     { @Sendable in
111 |       first
    |       `- warning: capture of 'self' with non-sendable type 'Dictionary<Key, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 |         .map { (key, value) in [Key.redactor.redact(key): Value.redactor.redact(value)] }
113 |         ?? [:]
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:111:7: warning: capture of 'self' with non-sendable type 'Dictionary<Key, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 |   public var anonymizeValues: @Sendable () -> Dictionary<Key, Value> {
110 |     { @Sendable in
111 |       first
    |       `- warning: capture of 'self' with non-sendable type 'Dictionary<Key, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 |         .map { (key, value) in [Key.redactor.redact(key): Value.redactor.redact(value)] }
113 |         ?? [:]
[7/8] Emitting module Secrecy
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret.swift:27:33: warning: generic parameter 'Wrapped' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 1 | /// A type that wraps a value which should not be exposed lightly.
 2 | @propertyWrapper
 3 | public struct Secret<Wrapped> {
   |                      `- note: 'Wrapped' previously declared here
 4 |   /// The value that should be treated with care.
 5 |   private let value: Wrapped
   :
25 |   }
26 |
27 |   public struct UnwrappedSecret<Wrapped> {
   |                                 `- warning: generic parameter 'Wrapped' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
28 |     public let value: Wrapped
29 |
[8/8] Compiling Secrecy Secret+Decodable.swift
Build complete! (4.07s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-secrecy",
  "name" : "swift-secrecy",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Secrecy",
      "targets" : [
        "Secrecy"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SecrecyTests",
      "module_type" : "SwiftTarget",
      "name" : "SecrecyTests",
      "path" : "Tests/SecrecyTests",
      "sources" : [
        "SecrecyTests.swift"
      ],
      "target_dependencies" : [
        "Secrecy"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Secrecy",
      "module_type" : "SwiftTarget",
      "name" : "Secrecy",
      "path" : "Sources/Secrecy",
      "product_memberships" : [
        "Secrecy"
      ],
      "sources" : [
        "Redactor.swift",
        "Secret+Decodable.swift",
        "Secret+Encodable.swift",
        "Secret+Literal.swift",
        "Secret.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.