The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-secrecy, reference 0.2.0 (54570e), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 21:55:45 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattia/swift-secrecy.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mattia/swift-secrecy
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 54570e4 Fortify `Secret.Wrapped` value protection (#9)
Cloned https://github.com/mattia/swift-secrecy.git
Revision (git rev-parse @):
54570e445a100bffc239ef351fa4217e53f4b6f6
SUCCESS checkout https://github.com/mattia/swift-secrecy.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mattia/swift-secrecy.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/8] Compiling Secrecy Secret+Decodable.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 Secret+Encodable.swift
[6/8] Compiling Secrecy Secret+Literal.swift
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:52:57: warning: capture of non-sendable type 'Wrapped.Type' in an isolated closure; this is an error in the Swift 6 language mode
 50 | extension Secret: ExpressibleByArrayLiteral where Wrapped: _InitializableByArrayLiteralElements {
 51 |   public init(arrayLiteral elements: Wrapped.ArrayLiteralElement...) {
 52 |     self.init(Wrapped(elements), redactor: Redactor{ $0.anonymizeValues() })
    |                                                         `- warning: capture of non-sendable type 'Wrapped.Type' in an isolated closure; this is an error in the Swift 6 language mode
 53 |   }
 54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:67:20: warning: capture of non-sendable type 'Element.Type' in an isolated 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 non-sendable type 'Element.Type' in an isolated closure; this is an error in the Swift 6 language mode
 68 |   }
 69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:66:62: warning: capture of non-sendable type 'Element.Type' in an isolated closure; this is an error in the Swift 6 language mode
 64 | extension Array: _InitializableByArrayLiteralElements
 65 | where Element: InitializableByLiteralType {
 66 |   public var anonymizeValues: @Sendable () -> Array<Element> {
    |                                                              `- warning: capture of non-sendable type 'Element.Type' in an isolated closure; this is an error in the Swift 6 language mode
 67 |     { @Sendable in map(Element.redactor.redact) }
 68 |   }
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:90:58: warning: capture of non-sendable type 'Wrapped.Type' in an isolated closure; this is an error in the Swift 6 language mode
 88 | extension Secret: ExpressibleByDictionaryLiteral where Wrapped: _WrapperForDictionaryLiteralElements {
 89 |   public init(dictionaryLiteral elements: (Wrapped.Key, Wrapped.Value)...) {
 90 |     self.init(Wrapped(elements), redactor: Redactor { $0.anonymizeValues() })
    |                                                          `- warning: capture of non-sendable type 'Wrapped.Type' in an isolated closure; this is an error in the Swift 6 language mode
 91 |   }
 92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:113:9: warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
111 |       first
112 |         .map { (key, value) in [Key.redactor.redact(key): Value.redactor.redact(value)] }
113 |         ?? [:]
    |         `- warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
114 |     }
115 |   }
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:113:9: warning: capture of non-sendable type 'Value.Type' in an isolated closure; this is an error in the Swift 6 language mode
111 |       first
112 |         .map { (key, value) in [Key.redactor.redact(key): Value.redactor.redact(value)] }
113 |         ?? [:]
    |         `- warning: capture of non-sendable type 'Value.Type' in an isolated closure; this is an error in the Swift 6 language mode
114 |     }
115 |   }
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:109:70: warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
107 |   }
108 |
109 |   public var anonymizeValues: @Sendable () -> Dictionary<Key, Value> {
    |                                                                      `- warning: capture of non-sendable type 'Key.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 |     { @Sendable in
111 |       first
/Users/admin/builder/spi-builder-workspace/Sources/Secrecy/Secret+Literal.swift:109:70: warning: capture of non-sendable type 'Value.Type' in an isolated closure; this is an error in the Swift 6 language mode
107 |   }
108 |
109 |   public var anonymizeValues: @Sendable () -> Dictionary<Key, Value> {
    |                                                                      `- warning: capture of non-sendable type 'Value.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 |     { @Sendable in
111 |       first
[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 Redactor.swift
Build complete! (0.76s)
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.