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 Gloss, reference 3.2.1 (efd259), with Swift 6.0 for Linux on 27 Nov 2024 23:20:22 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hkellaway/Gloss.git
Reference: 3.2.1
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/hkellaway/Gloss
 * tag               3.2.1      -> FETCH_HEAD
HEAD is now at efd2596 Merge pull request #366 from hkellaway/release/3.2.1
Cloned https://github.com/hkellaway/Gloss.git
Revision (git rev-parse @):
efd25964891ae8a9cfbe2345628ad02fcb9a105c
SUCCESS checkout https://github.com/hkellaway/Gloss.git at 3.2.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/hkellaway/Gloss.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 Gloss ExtensionEncodable.swift
[4/10] Compiling Gloss Gloss.swift
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:87:25: warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 85 |  - returns: Date formatter.
 86 |  */
 87 | public private(set) var GlossDateFormatterISO8601: DateFormatter = {
    |                         |- warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossDateFormatterISO8601' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossDateFormatterISO8601' 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
 88 |
 89 |     let dateFormatterISO8601 = DateFormatter()
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:205:25: warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
203 |  - returns: Default key path delimiter.
204 |  */
205 | public private(set) var GlossKeyPathDelimiter: String = {
    |                         |- warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossKeyPathDelimiter' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossKeyPathDelimiter' 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
206 |     return "."
207 | }()
[5/11] Compiling Gloss ExtensionDictionary.swift
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:205:25: warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
203 |  - returns: Default key path delimiter.
204 |  */
205 | public private(set) var GlossKeyPathDelimiter: String = {
    |                         |- warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossKeyPathDelimiter' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossKeyPathDelimiter' 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
206 |     return "."
207 | }()
[6/11] Compiling Gloss ExtensionDecodable.swift
[7/11] Compiling Gloss Encoder.swift
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:87:25: warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 85 |  - returns: Date formatter.
 86 |  */
 87 | public private(set) var GlossDateFormatterISO8601: DateFormatter = {
    |                         |- warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossDateFormatterISO8601' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossDateFormatterISO8601' 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
 88 |
 89 |     let dateFormatterISO8601 = DateFormatter()
[8/11] Emitting module Gloss
/host/spi-builder-workspace/Sources/Gloss/Decoder.swift:34:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 |
 33 |     /// Default logger
 34 |     public static var logger: Logger = GlossLogger()
    |                       |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logger' 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
 35 |
 36 |     /**
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:205:25: warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
203 |  - returns: Default key path delimiter.
204 |  */
205 | public private(set) var GlossKeyPathDelimiter: String = {
    |                         |- warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossKeyPathDelimiter' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossKeyPathDelimiter' 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
206 |     return "."
207 | }()
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:87:25: warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 85 |  - returns: Date formatter.
 86 |  */
 87 | public private(set) var GlossDateFormatterISO8601: DateFormatter = {
    |                         |- warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossDateFormatterISO8601' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossDateFormatterISO8601' 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
 88 |
 89 |     let dateFormatterISO8601 = DateFormatter()
[9/11] Compiling Gloss Decoder.swift
/host/spi-builder-workspace/Sources/Gloss/Decoder.swift:34:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 |
 33 |     /// Default logger
 34 |     public static var logger: Logger = GlossLogger()
    |                       |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logger' 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
 35 |
 36 |     /**
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:205:25: warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
203 |  - returns: Default key path delimiter.
204 |  */
205 | public private(set) var GlossKeyPathDelimiter: String = {
    |                         |- warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossKeyPathDelimiter' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossKeyPathDelimiter' 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
206 |     return "."
207 | }()
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:87:25: warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 85 |  - returns: Date formatter.
 86 |  */
 87 | public private(set) var GlossDateFormatterISO8601: DateFormatter = {
    |                         |- warning: var 'GlossDateFormatterISO8601' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossDateFormatterISO8601' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossDateFormatterISO8601' 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
 88 |
 89 |     let dateFormatterISO8601 = DateFormatter()
[10/11] Compiling Gloss ExtensionArray.swift
[11/11] Compiling Gloss Operators.swift
/host/spi-builder-workspace/Sources/Gloss/Gloss.swift:205:25: warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
203 |  - returns: Default key path delimiter.
204 |  */
205 | public private(set) var GlossKeyPathDelimiter: String = {
    |                         |- warning: var 'GlossKeyPathDelimiter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'GlossKeyPathDelimiter' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'GlossKeyPathDelimiter' 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
206 |     return "."
207 | }()
/host/spi-builder-workspace/Sources/Gloss/Decoder.swift:34:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 |
 33 |     /// Default logger
 34 |     public static var logger: Logger = GlossLogger()
    |                       |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logger' 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
 35 |
 36 |     /**
Build complete! (12.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Gloss",
  "name" : "Gloss",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Gloss",
      "targets" : [
        "Gloss"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GlossTests",
      "module_type" : "SwiftTarget",
      "name" : "GlossTests",
      "path" : "Sources/GlossTests",
      "sources" : [
        "Comparators.swift",
        "DecoderTests.swift",
        "EncoderTests.swift",
        "Fakes/FakeLogger.swift",
        "FlowObjectCreationTests.swift",
        "GlossTests.swift",
        "KeyPathTests.swift",
        "ObjectToJSONFlowTests.swift",
        "OperatorTests.swift",
        "Test Models/TestFailableModel.swift",
        "Test Models/TestKeyPathModel.swift",
        "Test Models/TestKeyPathModelCustomDelimiter.swift",
        "Test Models/TestModel.swift",
        "Test Models/TestNestedKeyPathModel.swift",
        "Test Models/TestNestedModel.swift",
        "Test Models/TestUnknownTypeModel.swift"
      ],
      "target_dependencies" : [
        "Gloss"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Gloss",
      "module_type" : "SwiftTarget",
      "name" : "Gloss",
      "path" : "Sources/Gloss",
      "product_memberships" : [
        "Gloss"
      ],
      "sources" : [
        "Decoder.swift",
        "Encoder.swift",
        "ExtensionArray.swift",
        "ExtensionDecodable.swift",
        "ExtensionDictionary.swift",
        "ExtensionEncodable.swift",
        "Gloss.swift",
        "Operators.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.