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 BSON, reference main (4240cf), with Swift 6.0 for Linux on 28 Apr 2025 13:17:54 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orlandos-nl/BSON.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/orlandos-nl/BSON
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4240cf6 Merge pull request #87 from orlandos-nl/jo/expose-type-identifier
Cloned https://github.com/orlandos-nl/BSON.git
Revision (git rev-parse @):
4240cf68b5d161434034a493741f0ae08cbef017
SUCCESS checkout https://github.com/orlandos-nl/BSON.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/orlandos-nl/BSON.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-nio.git
[1/75468] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.28s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.0 (2.89s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/4353] Fetching swift-system
[1351/6058] Fetching swift-system, swift-atomics
[5582/22300] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (5.56s)
Fetched https://github.com/apple/swift-system.git from cache (5.56s)
Fetched https://github.com/apple/swift-collections.git from cache (5.58s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.65s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (1.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.98s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.0
Building for debugging...
[0/18] Write sources
[7/18] Compiling CNIOLinux liburing_shims.c
[8/18] Compiling _AtomicsShims.c
[8/18] Compiling CNIOWindows WSAStartup.c
[8/18] Compiling CNIODarwin shim.c
[11/18] Write sources
[12/18] Compiling CNIOWindows shim.c
[13/18] Compiling CNIOWASI CNIOWASI.c
[14/18] Compiling CNIOLinux shim.c
[15/18] Write swift-version-24593BA9C3E375BF.txt
[17/60] Emitting module InternalCollectionsUtilities
[17/62] Compiling c-nioatomics.c
[19/62] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[20/62] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[21/62] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[22/62] Compiling InternalCollectionsUtilities _SortedCollection.swift
[23/62] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[24/62] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[25/62] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[26/62] Compiling InternalCollectionsUtilities Integer rank.swift
[29/64] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[30/64] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[31/64] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[32/64] Emitting module _NIOBase64
[33/64] Compiling _NIOBase64 Base64.swift
[34/65] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[36/65] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[37/65] Compiling InternalCollectionsUtilities Specialize.swift
[38/65] Emitting module Atomics
[39/65] Compiling InternalCollectionsUtilities Debugging.swift
[40/65] Compiling InternalCollectionsUtilities Descriptions.swift
[41/65] Compiling InternalCollectionsUtilities UInt+reversed.swift
[42/65] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[49/66] Compiling _NIODataStructures PriorityQueue.swift
[60/66] Compiling _NIODataStructures _TinyArray.swift
[61/66] Compiling c-atomics.c
[63/66] Compiling Atomics IntegerOperations.swift
[64/66] Compiling Atomics Unmanaged extensions.swift
[66/88] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[67/88] Compiling DequeModule Deque+CustomReflectable.swift
[68/88] Compiling DequeModule Deque+Descriptions.swift
[69/90] Compiling DequeModule Deque+Equatable.swift
[70/90] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[71/90] Compiling DequeModule _DequeBuffer.swift
[72/90] Compiling DequeModule _DequeBufferHeader.swift
[73/90] Emitting module NIOConcurrencyHelpers
[74/90] Compiling NIOConcurrencyHelpers NIOLock.swift
[75/90] Compiling NIOConcurrencyHelpers lock.swift
[76/90] Compiling _NIODataStructures Heap.swift
[77/90] Emitting module _NIODataStructures
[79/91] Compiling DequeModule _DequeSlot.swift
[80/91] Compiling DequeModule _UnsafeWrappedBuffer.swift
[81/91] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[82/91] Compiling NIOConcurrencyHelpers atomics.swift
[83/92] Compiling DequeModule Deque+Extras.swift
[84/92] Compiling DequeModule Deque+Hashable.swift
[85/92] Compiling DequeModule Deque._UnsafeHandle.swift
[86/92] Compiling DequeModule Deque.swift
[87/92] Compiling DequeModule Deque+Testing.swift
[88/92] Compiling DequeModule Deque._Storage.swift
[90/92] Compiling DequeModule Deque+Codable.swift
[91/92] Compiling DequeModule Deque+Collection.swift
[92/92] Emitting module DequeModule
[94/152] Compiling NIOCore GlobalSingletons.swift
[95/152] Compiling NIOCore IO.swift
[96/152] Compiling NIOCore IOData.swift
[97/152] Compiling NIOCore IPProtocol.swift
[98/152] Compiling NIOCore IntegerBitPacking.swift
[99/152] Compiling NIOCore IntegerTypes.swift
[100/152] Compiling NIOCore Interfaces.swift
[101/152] Compiling NIOCore Linux.swift
[102/160] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[103/160] Compiling NIOCore SocketAddresses.swift
[104/160] Compiling NIOCore SocketOptionProvider.swift
[105/160] Compiling NIOCore SystemCallHelpers.swift
[106/160] Compiling NIOCore TimeAmount+Duration.swift
[107/160] Compiling NIOCore TypeAssistedChannelHandler.swift
[108/160] Compiling NIOCore UniversalBootstrapSupport.swift
[109/160] Compiling NIOCore Utilities.swift
[110/160] Compiling NIOCore AddressedEnvelope.swift
[111/160] Compiling NIOCore AsyncAwaitSupport.swift
[112/160] Compiling NIOCore AsyncChannel.swift
[113/160] Compiling NIOCore AsyncChannelHandler.swift
[114/160] Compiling NIOCore AsyncChannelInboundStream.swift
[115/160] Compiling NIOCore AsyncChannelOutboundWriter.swift
[116/160] Compiling NIOCore NIOAsyncSequenceProducer.swift
[117/160] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[118/160] Compiling NIOCore NIOAsyncWriter.swift
[119/160] Compiling NIOCore EventLoop.swift
[120/160] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[121/160] Compiling NIOCore EventLoopFuture+Deprecated.swift
[122/160] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[123/160] Compiling NIOCore EventLoopFuture.swift
[124/160] Compiling NIOCore FileDescriptor.swift
[125/160] Compiling NIOCore FileHandle.swift
[126/160] Compiling NIOCore FileRegion.swift
[127/160] Compiling NIOCore MarkedCircularBuffer.swift
[128/160] Compiling NIOCore MulticastChannel.swift
[129/160] Compiling NIOCore NIOAny.swift
[130/160] Compiling NIOCore NIOCloseOnErrorHandler.swift
[131/160] Compiling NIOCore NIOLoopBound.swift
[132/160] Compiling NIOCore NIOScheduledCallback.swift
[133/160] Compiling NIOCore NIOSendable.swift
[134/160] Compiling NIOCore RecvByteBufferAllocator.swift
[135/160] Compiling NIOCore ChannelPipeline.swift
[136/160] Compiling NIOCore CircularBuffer.swift
[137/160] Compiling NIOCore Codec.swift
[138/160] Compiling NIOCore ConvenienceOptionSupport.swift
[139/160] Compiling NIOCore DeadChannel.swift
[140/160] Compiling NIOCore DispatchQueue+WithFuture.swift
[141/160] Compiling NIOCore EventLoop+Deprecated.swift
[142/160] Compiling NIOCore EventLoop+SerialExecutor.swift
[143/160] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[144/160] Compiling NIOCore BSDSocketAPI.swift
[145/160] Compiling NIOCore ByteBuffer-aux.swift
[146/160] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[147/160] Compiling NIOCore ByteBuffer-conversions.swift
[148/160] Compiling NIOCore ByteBuffer-core.swift
[149/160] Compiling NIOCore ByteBuffer-hex.swift
[150/160] Compiling NIOCore ByteBuffer-int.swift
[151/160] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[152/160] Compiling NIOCore ByteBuffer-multi-int.swift
[153/160] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[154/160] Compiling NIOCore ByteBuffer-views.swift
[155/160] Compiling NIOCore Channel.swift
[156/160] Compiling NIOCore ChannelHandler.swift
[157/160] Compiling NIOCore ChannelHandlers.swift
[158/160] Compiling NIOCore ChannelInvoker.swift
[159/160] Compiling NIOCore ChannelOption.swift
[160/160] Emitting module NIOCore
[162/195] Emitting module BSON
[163/199] Compiling BSON Document+Subscripts.swift
[164/199] Compiling BSON Document+Validation.swift
[165/199] Compiling BSON Document.swift
[166/199] Compiling BSON DocumentSlice.swift
[167/199] Compiling BSON ByteBuffer+Helpers.swift
[168/199] Compiling BSON PrimitiveEncoding.swift
[169/199] Compiling BSON CustomDebugStringConvertible.swift
[170/199] Compiling BSON Document+Array.swift
[171/199] Compiling BSON Document+Cache.swift
[172/199] Compiling BSON Document+Collection.swift
[173/199] Compiling BSON AnyPrimitive.swift
[174/199] Compiling BSON Binary.swift
[175/199] Compiling BSON Decimal128.swift
[176/199] Compiling BSON JavaScript.swift
[177/199] Compiling BSON Null.swift
[178/199] Compiling BSON ObjectId.swift
[179/199] Compiling BSON Optional.swift
[180/199] Compiling BSON PrimitiveConvertible.swift
[181/199] Compiling BSON Primitives.swift
[182/199] Compiling BSON RegularExpression.swift
[183/199] Compiling BSON Timestamp.swift
[184/199] Compiling BSON TypeIdentifier.swift
[185/199] Compiling BSON Document+Dictionary.swift
[186/199] Compiling BSON Document+Equatable.swift
[187/199] Compiling BSON Document+Helpers.swift
[188/199] Compiling BSON Document+Mutations.swift
[189/199] Compiling BSON Document+Serialization.swift
[190/199] Compiling BSON PrimitiveDecoding.swift
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[191/199] Compiling BSON SingleValueBSONDecodingContainer.swift
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[192/199] Compiling BSON UnkeyedBSONDecodingContainer.swift
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[193/199] Compiling BSON BSONEncoder.swift
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[194/199] Compiling BSON BSONEncoderStrategies.swift
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/host/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[195/199] Compiling BSON Codable.swift
[196/199] Compiling BSON BSONDecoder.swift
[197/199] Compiling BSON BSONDecoderSettings.swift
[198/199] Compiling BSON FastBSONDecoder.swift
[199/199] Compiling BSON KeyedBSONDecodingContainer.swift
Build complete! (74.14s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.46.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    }
  ],
  "manifest_display_name" : "BSON",
  "name" : "BSON",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "BSON",
      "targets" : [
        "BSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BSONTests",
      "module_type" : "SwiftTarget",
      "name" : "BSONTests",
      "path" : "Tests/BSONTests",
      "sources" : [
        "BSONCorpusTests.swift",
        "BSONDateDecodingTests.swift",
        "BSONEncoderTests.swift",
        "BSONPublicTests.swift",
        "ObjectIdTests.swift"
      ],
      "target_dependencies" : [
        "BSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BSON",
      "module_type" : "SwiftTarget",
      "name" : "BSON",
      "path" : "Sources/BSON",
      "product_dependencies" : [
        "NIOCore"
      ],
      "product_memberships" : [
        "BSON"
      ],
      "sources" : [
        "Codable/Codable.swift",
        "Codable/Decoding/BSONDecoder.swift",
        "Codable/Decoding/BSONDecoderSettings.swift",
        "Codable/Decoding/Fast/FastBSONDecoder.swift",
        "Codable/Decoding/KeyedBSONDecodingContainer.swift",
        "Codable/Decoding/PrimitiveDecoding.swift",
        "Codable/Decoding/SingleValueBSONDecodingContainer.swift",
        "Codable/Decoding/UnkeyedBSONDecodingContainer.swift",
        "Codable/Encoding/BSONEncoder.swift",
        "Codable/Encoding/BSONEncoderStrategies.swift",
        "Codable/Encoding/PrimitiveEncoding.swift",
        "Debugging/CustomDebugStringConvertible.swift",
        "Document/Document+Array.swift",
        "Document/Document+Cache.swift",
        "Document/Document+Collection.swift",
        "Document/Document+Dictionary.swift",
        "Document/Document+Equatable.swift",
        "Document/Document+Helpers.swift",
        "Document/Document+Mutations.swift",
        "Document/Document+Serialization.swift",
        "Document/Document+Subscripts.swift",
        "Document/Document+Validation.swift",
        "Document/Document.swift",
        "Document/DocumentSlice.swift",
        "Helpers/ByteBuffer+Helpers.swift",
        "Types/AnyPrimitive.swift",
        "Types/Binary.swift",
        "Types/Decimal128.swift",
        "Types/JavaScript.swift",
        "Types/Null.swift",
        "Types/ObjectId.swift",
        "Types/Optional.swift",
        "Types/PrimitiveConvertible.swift",
        "Types/Primitives.swift",
        "Types/RegularExpression.swift",
        "Types/Timestamp.swift",
        "Types/TypeIdentifier.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.