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 SwiftAvroCore, reference v0.3.4 (f0e027), with Swift 6.1 for Linux on 27 Apr 2025 21:44:01 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lynixliu/SwiftAvroCore.git
Reference: v0.3.4
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/lynixliu/SwiftAvroCore
 * tag               v0.3.4     -> FETCH_HEAD
HEAD is now at f0e0274 Merge pull request #33 from lynixliu/develop
Cloned https://github.com/lynixliu/SwiftAvroCore.git
Revision (git rev-parse @):
f0e027428ffa15939be0c60a4d2db29b6f658f8c
SUCCESS checkout https://github.com/lynixliu/SwiftAvroCore.git at v0.3.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/lynixliu/SwiftAvroCore.git
https://github.com/lynixliu/SwiftAvroCore.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "runtime",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.4",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/wickwirew/Runtime.git"
    }
  ],
  "manifest_display_name" : "SwiftAvroCore",
  "name" : "SwiftAvroCore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftAvroCore",
      "targets" : [
        "SwiftAvroCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftAvroCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAvroCoreTests",
      "path" : "Tests/SwiftAvroCoreTests",
      "sources" : [
        "AvroDecodableTest.swift",
        "AvroEncodableTest.swift",
        "AvroFileObjectTest.swift",
        "AvroProtocolTest.swift",
        "AvroRequestResponseTest.swift",
        "AvroSchemaCodingTest.swift",
        "AvroSchemaEquatableTest.swift",
        "AvroSchemaReflectingTest.swift",
        "Kitties.swift",
        "SchemalessCodingDecodingTest.swift",
        "SwiftAvroCoreTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAvroCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAvroCore",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAvroCore",
      "path" : "Sources/SwiftAvroCore",
      "product_dependencies" : [
        "Runtime"
      ],
      "product_memberships" : [
        "SwiftAvroCore"
      ],
      "sources" : [
        "AvroError.swift",
        "Codable/AvroDecodable.swift",
        "Codable/AvroEncodable.swift",
        "Codable/AvroJsonEncoder.swift",
        "Codable/AvroPrimitiveDecoder.swift",
        "Codable/AvroPrimitiveEncoder.swift",
        "Codable/AvroPrimitiveProtocol.swift",
        "Codable/AvroPrimitiveSizer.swift",
        "FileObject/NullCodec.swift",
        "FileObject/ObjectContainer.swift",
        "IPC/Context.swift",
        "IPC/Protocol.swift",
        "IPC/Request.swift",
        "IPC/Response.swift",
        "Schema/AvroFingerprint.swift",
        "Schema/AvroSchema+Codable.swift",
        "Schema/AvroSchema+Equatable.swift",
        "Schema/AvroSchema+Reflecting.swift",
        "Schema/AvroSchema.swift",
        "SwiftAvroCore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/wickwirew/Runtime.git
[1/1966] Fetching runtime
Fetched https://github.com/wickwirew/Runtime.git from cache (0.27s)
Computing version for https://github.com/wickwirew/Runtime.git
Computed https://github.com/wickwirew/Runtime.git at 2.2.7 (2.57s)
Creating working copy for https://github.com/wickwirew/Runtime.git
Working copy of https://github.com/wickwirew/Runtime.git resolved at 2.2.7
Building for debugging...
[0/4] Write sources
[2/4] Compiling CRuntime dummy.c
[2/4] Write swift-version-24593BA9C3E375BF.txt
[5/45] Emitting module Runtime
[6/50] Compiling Runtime Vector.swift
[7/50] Compiling Runtime GettersSetters.swift
[8/50] Compiling Runtime Pointer+Extensions.swift
[9/50] Compiling Runtime RetainCounts.swift
[10/50] Compiling Runtime String+Extensions.swift
[11/50] Compiling Runtime TypeInfoConvertible.swift
[12/50] Compiling Runtime Pointers.swift
[13/50] Compiling Runtime RelativePointer.swift
[14/50] Compiling Runtime RelativeVectorPointer.swift
[15/50] Compiling Runtime Union.swift
[16/50] Compiling Runtime MetadataType.swift
[17/50] Compiling Runtime NominalMetadataType.swift
[18/50] Compiling Runtime ProtocolMetadata.swift
[19/50] Compiling Runtime StructMetadata.swift
[20/50] Compiling Runtime TupleMetadata.swift
[21/50] Compiling Runtime Case.swift
[22/50] Compiling Runtime ProtocolMetadataLayout.swift
[23/50] Compiling Runtime ProtocolTypeContainer.swift
[24/50] Compiling Runtime StructMetadataLayout.swift
[25/50] Compiling Runtime StructTypeDescriptor.swift
[26/50] Compiling Runtime TargetTypeGenericContextDescriptorHeader.swift
[27/50] Compiling Runtime TupleMetadataLayout.swift
[28/50] Compiling Runtime Errors.swift
[29/50] Compiling Runtime FunctionInfo.swift
[30/50] Compiling Runtime Kind.swift
[31/50] Compiling Runtime PropertyInfo.swift
[32/50] Compiling Runtime TypeInfo.swift
[33/50] Compiling Runtime TypeDescriptor.swift
[34/50] Compiling Runtime ValueWitnessTable.swift
[35/50] Compiling Runtime ClassMetadata.swift
[36/50] Compiling Runtime EnumMetadata.swift
[37/50] Compiling Runtime FuntionMetadata.swift
[38/50] Compiling Runtime Metadata.swift
[39/50] Compiling Runtime EnumTypeDescriptor.swift
[40/50] Compiling Runtime ExistentialContainter.swift
[41/50] Compiling Runtime FieldDescriptor.swift
[42/50] Compiling Runtime FunctionMetadataLayout.swift
[43/50] Compiling Runtime MetadataLayoutType.swift
[44/50] Compiling Runtime ProtocolDescriptor.swift
[45/50] Compiling Runtime DefaultValue.swift
[46/50] Compiling Runtime Factory.swift
[47/50] Compiling Runtime ClassHeader.swift
[48/50] Compiling Runtime ClassMetadataLayout.swift
[49/50] Compiling Runtime ClassTypeDescriptor.swift
[50/50] Compiling Runtime EnumMetadataLayout.swift
[52/70] Compiling SwiftAvroCore Request.swift
[53/70] Compiling SwiftAvroCore Response.swift
[54/70] Compiling SwiftAvroCore AvroPrimitiveProtocol.swift
[55/70] Compiling SwiftAvroCore AvroPrimitiveSizer.swift
[56/70] Compiling SwiftAvroCore NullCodec.swift
[57/72] Emitting module SwiftAvroCore
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroEncodable.swift:447:24: warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
445 |     var schema: AvroSchema
446 |     var identifier: Int
447 |     private static var identifierFactory = 0
    |                        |- warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'identifierFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'identifierFactory' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 |
449 |     private static func getUniqueIdentifier() -> Int {
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroJsonEncoder.swift:664:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
662 |     }
663 |
664 |     func encode(_ value: [UInt8]) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '([UInt8]) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
665 |         if !schema.isBytes() {
666 |             throw BinaryEncodingError.typeMismatchWithSchema
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: Int128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
[58/72] Compiling SwiftAvroCore AvroSchema+Equatable.swift
[59/72] Compiling SwiftAvroCore AvroSchema+Reflecting.swift
[60/72] Compiling SwiftAvroCore AvroFingerprint.swift
[61/72] Compiling SwiftAvroCore AvroSchema+Codable.swift
[62/72] Compiling SwiftAvroCore ObjectContainer.swift
[63/72] Compiling SwiftAvroCore Context.swift
[64/72] Compiling SwiftAvroCore Protocol.swift
[65/72] Compiling SwiftAvroCore AvroError.swift
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroEncodable.swift:447:24: warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
445 |     var schema: AvroSchema
446 |     var identifier: Int
447 |     private static var identifierFactory = 0
    |                        |- warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'identifierFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'identifierFactory' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 |
449 |     private static func getUniqueIdentifier() -> Int {
[66/72] Compiling SwiftAvroCore AvroDecodable.swift
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroEncodable.swift:447:24: warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
445 |     var schema: AvroSchema
446 |     var identifier: Int
447 |     private static var identifierFactory = 0
    |                        |- warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'identifierFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'identifierFactory' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 |
449 |     private static func getUniqueIdentifier() -> Int {
[67/72] Compiling SwiftAvroCore AvroEncodable.swift
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroEncodable.swift:447:24: warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
445 |     var schema: AvroSchema
446 |     var identifier: Int
447 |     private static var identifierFactory = 0
    |                        |- warning: static property 'identifierFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'identifierFactory' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'identifierFactory' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 |
449 |     private static func getUniqueIdentifier() -> Int {
[68/72] Compiling SwiftAvroCore AvroJsonEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroJsonEncoder.swift:664:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
662 |     }
663 |
664 |     func encode(_ value: [UInt8]) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '([UInt8]) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
665 |         if !schema.isBytes() {
666 |             throw BinaryEncodingError.typeMismatchWithSchema
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: Int128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
[69/72] Compiling SwiftAvroCore AvroPrimitiveDecoder.swift
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroJsonEncoder.swift:664:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
662 |     }
663 |
664 |     func encode(_ value: [UInt8]) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '([UInt8]) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
665 |         if !schema.isBytes() {
666 |             throw BinaryEncodingError.typeMismatchWithSchema
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: Int128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
[70/72] Compiling SwiftAvroCore AvroPrimitiveEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAvroCore/Codable/AvroJsonEncoder.swift:664:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
662 |     }
663 |
664 |     func encode(_ value: [UInt8]) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '([UInt8]) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
665 |         if !schema.isBytes() {
666 |             throw BinaryEncodingError.typeMismatchWithSchema
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: Int128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
[71/72] Compiling SwiftAvroCore AvroSchema.swift
[72/72] Compiling SwiftAvroCore SwiftAvroCore.swift
Build complete! (16.45s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "runtime",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.4",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/wickwirew/Runtime.git"
    }
  ],
  "manifest_display_name" : "SwiftAvroCore",
  "name" : "SwiftAvroCore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftAvroCore",
      "targets" : [
        "SwiftAvroCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftAvroCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAvroCoreTests",
      "path" : "Tests/SwiftAvroCoreTests",
      "sources" : [
        "AvroDecodableTest.swift",
        "AvroEncodableTest.swift",
        "AvroFileObjectTest.swift",
        "AvroProtocolTest.swift",
        "AvroRequestResponseTest.swift",
        "AvroSchemaCodingTest.swift",
        "AvroSchemaEquatableTest.swift",
        "AvroSchemaReflectingTest.swift",
        "Kitties.swift",
        "SchemalessCodingDecodingTest.swift",
        "SwiftAvroCoreTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAvroCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAvroCore",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAvroCore",
      "path" : "Sources/SwiftAvroCore",
      "product_dependencies" : [
        "Runtime"
      ],
      "product_memberships" : [
        "SwiftAvroCore"
      ],
      "sources" : [
        "AvroError.swift",
        "Codable/AvroDecodable.swift",
        "Codable/AvroEncodable.swift",
        "Codable/AvroJsonEncoder.swift",
        "Codable/AvroPrimitiveDecoder.swift",
        "Codable/AvroPrimitiveEncoder.swift",
        "Codable/AvroPrimitiveProtocol.swift",
        "Codable/AvroPrimitiveSizer.swift",
        "FileObject/NullCodec.swift",
        "FileObject/ObjectContainer.swift",
        "IPC/Context.swift",
        "IPC/Protocol.swift",
        "IPC/Request.swift",
        "IPC/Response.swift",
        "Schema/AvroFingerprint.swift",
        "Schema/AvroSchema+Codable.swift",
        "Schema/AvroSchema+Equatable.swift",
        "Schema/AvroSchema+Reflecting.swift",
        "Schema/AvroSchema.swift",
        "SwiftAvroCore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.