The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of swift-qrcode-generator, reference v2.0.2 (2b1980), with Swift 6.0 for Linux on 30 Nov 2024 10:29:55 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/swift-qrcode-generator.git
Reference: v2.0.2
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/dagronf/swift-qrcode-generator
 * tag               v2.0.2     -> FETCH_HEAD
HEAD is now at 2b1980b Bump iOS deployment target to 11.0
Cloned https://github.com/dagronf/swift-qrcode-generator.git
Revision (git rev-parse @):
2b1980b825f08a81ccc762b0c4d17fcde9d5e953
SUCCESS checkout https://github.com/dagronf/swift-qrcode-generator.git at v2.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dagronf/swift-qrcode-generator.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling QRCodeGenerator QRCodeECC.swift
[4/11] Compiling QRCodeGenerator QRCodeVersion.swift
/host/spi-builder-workspace/Sources/QRCodeGenerator/QRCodeVersion.swift:28:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// A number between 1 and 40 (inclusive).
26 | public struct QRCodeVersion: Hashable, Comparable {
   |               `- note: consider making struct 'QRCodeVersion' conform to the 'Sendable' protocol
27 |     /// The minimum version number supported in the QR Code Model 2 standard.
28 |     public static let min = QRCodeVersion(1)
   |                       |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'min' 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
29 |     /// The maximum version number supported in the QR Code Model 2 standard.
30 |     public static let max = QRCodeVersion(40)
/host/spi-builder-workspace/Sources/QRCodeGenerator/QRCodeVersion.swift:30:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// A number between 1 and 40 (inclusive).
26 | public struct QRCodeVersion: Hashable, Comparable {
   |               `- note: consider making struct 'QRCodeVersion' conform to the 'Sendable' protocol
27 |     /// The minimum version number supported in the QR Code Model 2 standard.
28 |     public static let min = QRCodeVersion(1)
29 |     /// The maximum version number supported in the QR Code Model 2 standard.
30 |     public static let max = QRCodeVersion(40)
   |                       |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'max' 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
31 |
32 |     public let value: UInt8
[5/11] Compiling QRCodeGenerator QRCodeConstants.swift
[6/11] Compiling QRCodeGenerator QRCodeMask.swift
[7/11] Compiling QRCodeGenerator QRCodeError.swift
[8/11] Compiling QRCodeGenerator QRSegment.swift
[9/11] Compiling QRCodeGenerator QRCode.swift
/host/spi-builder-workspace/Sources/QRCodeGenerator/QRCodeVersion.swift:28:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// A number between 1 and 40 (inclusive).
26 | public struct QRCodeVersion: Hashable, Comparable {
   |               `- note: consider making struct 'QRCodeVersion' conform to the 'Sendable' protocol
27 |     /// The minimum version number supported in the QR Code Model 2 standard.
28 |     public static let min = QRCodeVersion(1)
   |                       |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'min' 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
29 |     /// The maximum version number supported in the QR Code Model 2 standard.
30 |     public static let max = QRCodeVersion(40)
/host/spi-builder-workspace/Sources/QRCodeGenerator/QRCodeVersion.swift:30:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// A number between 1 and 40 (inclusive).
26 | public struct QRCodeVersion: Hashable, Comparable {
   |               `- note: consider making struct 'QRCodeVersion' conform to the 'Sendable' protocol
27 |     /// The minimum version number supported in the QR Code Model 2 standard.
28 |     public static let min = QRCodeVersion(1)
29 |     /// The maximum version number supported in the QR Code Model 2 standard.
30 |     public static let max = QRCodeVersion(40)
   |                       |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'max' 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
31 |
32 |     public let value: UInt8
[10/11] Compiling QRCodeGenerator BitBuffer.swift
[11/11] Emitting module QRCodeGenerator
/host/spi-builder-workspace/Sources/QRCodeGenerator/QRCodeVersion.swift:28:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// A number between 1 and 40 (inclusive).
26 | public struct QRCodeVersion: Hashable, Comparable {
   |               `- note: consider making struct 'QRCodeVersion' conform to the 'Sendable' protocol
27 |     /// The minimum version number supported in the QR Code Model 2 standard.
28 |     public static let min = QRCodeVersion(1)
   |                       |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'min' 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
29 |     /// The maximum version number supported in the QR Code Model 2 standard.
30 |     public static let max = QRCodeVersion(40)
/host/spi-builder-workspace/Sources/QRCodeGenerator/QRCodeVersion.swift:30:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// A number between 1 and 40 (inclusive).
26 | public struct QRCodeVersion: Hashable, Comparable {
   |               `- note: consider making struct 'QRCodeVersion' conform to the 'Sendable' protocol
27 |     /// The minimum version number supported in the QR Code Model 2 standard.
28 |     public static let min = QRCodeVersion(1)
29 |     /// The maximum version number supported in the QR Code Model 2 standard.
30 |     public static let max = QRCodeVersion(40)
   |                       |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'QRCodeVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'max' 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
31 |
32 |     public let value: UInt8
Build complete! (13.53s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-qrcode-generator",
  "name" : "swift-qrcode-generator",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "QRCodeGenerator",
      "targets" : [
        "QRCodeGenerator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QRCodeGeneratorTests",
      "module_type" : "SwiftTarget",
      "name" : "QRCodeGeneratorTests",
      "path" : "Tests/QRCodeGeneratorTests",
      "sources" : [
        "QRCodeGeneratorTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "QRCodeGenerator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "QRCodeGenerator",
      "module_type" : "SwiftTarget",
      "name" : "QRCodeGenerator",
      "path" : "Sources/QRCodeGenerator",
      "product_memberships" : [
        "QRCodeGenerator"
      ],
      "sources" : [
        "BitBuffer.swift",
        "QRCode.swift",
        "QRCodeConstants.swift",
        "QRCodeECC.swift",
        "QRCodeError.swift",
        "QRCodeMask.swift",
        "QRCodeVersion.swift",
        "QRSegment.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.