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 Linux.

Swift 6 data race errors: 1

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattia/swift-secrecy.git
Reference: main
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/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:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mattia/swift-secrecy.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling Secrecy Secret+Decodable.swift
[4/8] Emitting module Secrecy
/host/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+Encodable.swift
[7/8] Compiling Secrecy Secret.swift
/host/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+Literal.swift
/host/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 | }
/host/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 |         ?? [:]
/host/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 |         ?? [:]
Build complete! (5.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-secrecy",
  "name" : "swift-secrecy",
  "path" : "/host/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.