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 SyntacticSugar with Swift 6.0 for Linux.

Swift 6 data race errors: 2

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/eligutovsky/SyntacticSugar.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/eligutovsky/SyntacticSugar
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2587cc1 Update issue templates
Cloned https://github.com/eligutovsky/SyntacticSugar.git
Revision (git rev-parse @):
2587cc1cd457f9abfbd5dd2f9066f74c2f034fb4
SUCCESS checkout https://github.com/eligutovsky/SyntacticSugar.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/eligutovsky/SyntacticSugar.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/6] Compiling SyntacticSugar Unwrap.swift
[4/6] Compiling SyntacticSugar Cast.swift
[5/6] Compiling SyntacticSugar SugarError.swift
/host/spi-builder-workspace/Sources/SugarError.swift:10:10: warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 8 | public enum SugarError: LocalizedError {
 9 |     /// An error thrown when a value can't be unwrapped to a generic type.
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
/host/spi-builder-workspace/Sources/SugarError.swift:12:10: warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 |     /// An custom error thrown when a value can't pass a guard statement.
14 |     case custom(String, function: StaticString = #function, line: UInt = #line)
[6/6] Emitting module SyntacticSugar
/host/spi-builder-workspace/Sources/SugarError.swift:10:10: warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 8 | public enum SugarError: LocalizedError {
 9 |     /// An error thrown when a value can't be unwrapped to a generic type.
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
/host/spi-builder-workspace/Sources/SugarError.swift:12:10: warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 |     /// An custom error thrown when a value can't pass a guard statement.
14 |     case custom(String, function: StaticString = #function, line: UInt = #line)
Build complete! (7.97s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SyntacticSugar",
  "name" : "SyntacticSugar",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SyntacticSugar",
      "targets" : [
        "SyntacticSugar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SyntacticSugarTests",
      "module_type" : "SwiftTarget",
      "name" : "SyntacticSugarTests",
      "path" : "Tests",
      "sources" : [
        "CastTests.swift",
        "Fixture.swift",
        "UnwrapTests.swift"
      ],
      "target_dependencies" : [
        "SyntacticSugar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SyntacticSugar",
      "module_type" : "SwiftTarget",
      "name" : "SyntacticSugar",
      "path" : "Sources",
      "product_memberships" : [
        "SyntacticSugar"
      ],
      "sources" : [
        "Cast.swift",
        "SugarError.swift",
        "Unwrap.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.