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 SGLImage, reference 2.2.0 (7aa96e), with Swift 6.0 (beta) for Linux on 23 Jul 2024 23:56:51 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.47.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftGL/Image.git
Reference: 2.2.0
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/SwiftGL/Image
 * tag               2.2.0      -> FETCH_HEAD
HEAD is now at 7aa96e7 Renamed podspec.
Cloned https://github.com/SwiftGL/Image.git
Revision (git rev-parse @):
7aa96e7548baa8d06619b97a1906012193f6eff8
SUCCESS checkout https://github.com/SwiftGL/Image.git at 2.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/SwiftGL/Image.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2437f24e80aef9b25b1058900b2010a68c7690bc33114243769a5a7e8e97de91
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/9] Compiling SGLImage ImageBMP.swift
[4/9] Compiling SGLImage Image.swift
/host/spi-builder-workspace/Sources/SGLImage/Image.swift:119:29: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
117 |
118 |     deinit {
119 |         buffer.baseAddress!.deallocate(capacity: buffer.count)
    |                             `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
120 |     }
121 |
[5/9] Compiling SGLImage ImageLoader.swift
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:50:23: warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 |     // Default list of decoders. API user may change this.
 49 |     // Put imprecise and sloppy detections at the end.
 50 |     public static var decoders:[SGLImageDecoder.Type] = [
    |                       |- warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'decoders' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'decoders' 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
 51 |         SGLImageDecoderPNG.self,
 52 |         SGLImageDecoderBMP.self,
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:57:23: warning: static property 'gamma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |
 56 |     // Gamma for Float conversion. Float is linear color space.
 57 |     public static var gamma:Float = 2.2
    |                       |- warning: static property 'gamma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'gamma' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'gamma' 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
 58 |     public var gamma:Float {
 59 |         get { return fGamma }
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:66:23: warning: static property 'scale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 64 |
 65 |     // Scale for Floats. Default is 0.0...1.0
 66 |     public static var scale:Float = 1.0
    |                       |- warning: static property 'scale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'scale' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'scale' 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
 67 |     public var scale:Float {
 68 |         get { return fScale }
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:75:23: warning: static property 'flipVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 |     // Set true to load images with 0,0 origin as bottom left.
 75 |     public static var flipVertical = false
    |                       |- warning: static property 'flipVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'flipVertical' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'flipVertical' 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
 76 |     public var flipVertical:Bool = SGLImageLoader.flipVertical
 77 |
[6/9] Compiling SGLImage ImageGIF.swift
[7/9] Emitting module SGLImage
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:50:23: warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 |     // Default list of decoders. API user may change this.
 49 |     // Put imprecise and sloppy detections at the end.
 50 |     public static var decoders:[SGLImageDecoder.Type] = [
    |                       |- warning: static property 'decoders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'decoders' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'decoders' 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
 51 |         SGLImageDecoderPNG.self,
 52 |         SGLImageDecoderBMP.self,
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:57:23: warning: static property 'gamma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |
 56 |     // Gamma for Float conversion. Float is linear color space.
 57 |     public static var gamma:Float = 2.2
    |                       |- warning: static property 'gamma' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'gamma' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'gamma' 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
 58 |     public var gamma:Float {
 59 |         get { return fGamma }
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:66:23: warning: static property 'scale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 64 |
 65 |     // Scale for Floats. Default is 0.0...1.0
 66 |     public static var scale:Float = 1.0
    |                       |- warning: static property 'scale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'scale' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'scale' 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
 67 |     public var scale:Float {
 68 |         get { return fScale }
/host/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:75:23: warning: static property 'flipVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 |     // Set true to load images with 0,0 origin as bottom left.
 75 |     public static var flipVertical = false
    |                       |- warning: static property 'flipVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'flipVertical' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'flipVertical' 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
 76 |     public var flipVertical:Bool = SGLImageLoader.flipVertical
 77 |
[8/9] Compiling SGLImage Inflate.swift
[9/9] Compiling SGLImage ImagePNG.swift
Build complete! (13.27s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SGLImage",
  "name" : "SGLImage",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SGLImage",
      "targets" : [
        "SGLImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SGLImageTests",
      "module_type" : "SwiftTarget",
      "name" : "SGLImageTests",
      "path" : "Tests/SGLImageTests",
      "sources" : [
        "SwiftGLresImage.swift"
      ],
      "target_dependencies" : [
        "SGLImage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SGLImage",
      "module_type" : "SwiftTarget",
      "name" : "SGLImage",
      "path" : "Sources/SGLImage",
      "product_memberships" : [
        "SGLImage"
      ],
      "sources" : [
        "Image.swift",
        "ImageBMP.swift",
        "ImageGIF.swift",
        "ImageLoader.swift",
        "ImagePNG.swift",
        "Inflate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2437f24e80aef9b25b1058900b2010a68c7690bc33114243769a5a7e8e97de91
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.