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

Swift 6 data race errors: 1

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/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/Frizlab/swift-fraction-number.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/Frizlab/swift-fraction-number
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a0667c6 Add a License
Cloned https://github.com/Frizlab/swift-fraction-number.git
Revision (git rev-parse @):
a0667c68be559201c1db413c70763d1fd9ada0e1
SUCCESS checkout https://github.com/Frizlab/swift-fraction-number.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Frizlab/swift-fraction-number.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/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/5] Emitting module FractionNumber
/host/spi-builder-workspace/Sources/FractionNumber.swift:359:21: warning: static property 'leniencyCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
357 |
358 | 	/* This is the set of characters we ignore when parsing the FractionNumber (we only ignore a normal space). */
359 | 	private static let leniencyCharacterSet = CharacterSet(charactersIn: " ")
    |                     `- warning: static property 'leniencyCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
360 |
361 | }
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/FractionNumber.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 |
    :
357 |
358 | 	/* This is the set of characters we ignore when parsing the FractionNumber (we only ignore a normal space). */
359 | 	private static let leniencyCharacterSet = CharacterSet(charactersIn: " ")
    |                     |- note: annotate 'leniencyCharacterSet' 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
360 |
361 | }
[4/5] Compiling FractionNumber FractionNumber.swift
/host/spi-builder-workspace/Sources/FractionNumber.swift:359:21: warning: static property 'leniencyCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
357 |
358 | 	/* This is the set of characters we ignore when parsing the FractionNumber (we only ignore a normal space). */
359 | 	private static let leniencyCharacterSet = CharacterSet(charactersIn: " ")
    |                     `- warning: static property 'leniencyCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
360 |
361 | }
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/FractionNumber.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 |
    :
357 |
358 | 	/* This is the set of characters we ignore when parsing the FractionNumber (we only ignore a normal space). */
359 | 	private static let leniencyCharacterSet = CharacterSet(charactersIn: " ")
    |                     |- note: annotate 'leniencyCharacterSet' 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
360 |
361 | }
[5/5] Compiling FractionNumber Maths.swift
Build complete! (10.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-fraction-number",
  "name" : "swift-fraction-number",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FractionNumber",
      "targets" : [
        "FractionNumber"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FractionNumberTests",
      "module_type" : "SwiftTarget",
      "name" : "FractionNumberTests",
      "path" : "Tests",
      "sources" : [
        "FractionNumberTests.swift"
      ],
      "target_dependencies" : [
        "FractionNumber"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FractionNumber",
      "module_type" : "SwiftTarget",
      "name" : "FractionNumber",
      "path" : "Sources",
      "product_memberships" : [
        "FractionNumber"
      ],
      "sources" : [
        "FractionNumber.swift",
        "Maths.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.