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 hmap with Swift 6.0 for Linux.

Swift 6 data race errors: 3

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/milend/hmap.git
Reference: master
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/milend/hmap
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f98e2dd Add chmap project reference
Cloned https://github.com/milend/hmap.git
Revision (git rev-parse @):
f98e2dd8cd03c86d10013a31914a9a75ae986763
SUCCESS checkout https://github.com/milend/hmap.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/milend/hmap.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
Fetching https://github.com/kylef/Commander.git
Fetching https://github.com/kylef/Spectre.git
[1/1588] Fetching commander
[1589/2609] Fetching commander, spectre
Fetched https://github.com/kylef/Commander.git from cache (0.25s)
Fetched https://github.com/kylef/Spectre.git from cache (0.25s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.0 (0.54s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.0 (1.44s)
Creating working copy for https://github.com/kylef/Commander.git
Working copy of https://github.com/kylef/Commander.git resolved at 0.9.0
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0
Building for debugging...
[0/12] Write sources
[5/12] Write swift-version-24593BA9C3E375BF.txt
[7/33] Emitting module Commander
[8/34] Compiling Commander Group.swift
[9/34] Compiling HeaderMapCore BinaryHeaderMap.swift
[10/34] Compiling HeaderMapCore ByteBuffer.swift
[11/34] Compiling Commander Command.swift
[12/34] Compiling Commander Commands.swift
[13/34] Compiling Commander CommandRunner.swift
[14/34] Compiling Commander ArgumentParser.swift
[15/34] Compiling Commander CommandType.swift
[16/34] Compiling Commander Error.swift
[17/35] Wrapping AST for Commander for debugging
[19/35] Compiling HeaderMapCore HeaderMapMaker.swift
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:37:14: warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              `- warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |   struct DataHeader: Packable {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 21 | // SOFTWARE.
 22 |
 23 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 24 |
 25 | protocol Packable {
    :
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              |- note: annotate 'StringEncoding' 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
 38 |
 39 |   struct DataHeader: Packable {
[20/35] Compiling HeaderMapCore HeaderMap.swift
[21/35] Compiling HeaderMapCore HeaderMapError.swift
[22/36] Emitting module HeaderMapCore
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:37:14: warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              `- warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |   struct DataHeader: Packable {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 21 | // SOFTWARE.
 22 |
 23 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 24 |
 25 | protocol Packable {
    :
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              |- note: annotate 'StringEncoding' 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
 38 |
 39 |   struct DataHeader: Packable {
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:37:14: warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              `- warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |   struct DataHeader: Packable {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 21 | // SOFTWARE.
 22 |
 23 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 24 |
 25 | protocol Packable {
    :
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              |- note: annotate 'StringEncoding' 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
 38 |
 39 |   struct DataHeader: Packable {
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:37:14: warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              `- warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |   struct DataHeader: Packable {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 21 | // SOFTWARE.
 22 |
 23 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 24 |
 25 | protocol Packable {
    :
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              |- note: annotate 'StringEncoding' 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
 38 |
 39 |   struct DataHeader: Packable {
[25/36] Emitting module HeaderMapTesting
[26/36] Compiling HeaderMapTesting TestingExtensions.swift
[27/36] Compiling HeaderMapCore DictionaryExtensions.swift
[28/36] Compiling HeaderMapCore NumberExtensions.swift
[30/37] Compiling HeaderMapCore JSONHeaderMap.swift
[31/37] Compiling HeaderMapCore ArrayExtensions.swift
[32/37] Compiling HeaderMapCore StringExtensions.swift
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:37:14: warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              `- warning: static property 'StringEncoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |   struct DataHeader: Packable {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/HeaderMapCore/BinaryHeaderMap.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 21 | // SOFTWARE.
 22 |
 23 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 24 |
 25 | protocol Packable {
    :
 35 |  */
 36 | struct BinaryHeaderMap {
 37 |   static let StringEncoding: String.Encoding = .utf8
    |              |- note: annotate 'StringEncoding' 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
 38 |
 39 |   struct DataHeader: Packable {
[33/38] Wrapping AST for HeaderMapCore for debugging
[35/44] Compiling HeaderMapFrontend FrontendErrors.swift
[36/44] Compiling HeaderMapFrontend FileFormat.swift
[37/44] Compiling HeaderMapFrontend PrintCommands.swift
[38/44] Emitting module HeaderMapFrontend
/host/spi-builder-workspace/Sources/HeaderMapFrontend/ConvertCommands.swift:48:10: warning: associated value 'sameFormat(format:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HeaderMapFileFormat'; this is an error in the Swift 6 language mode
 46 |
 47 |   public enum Error: LocalizedError {
 48 |     case sameFormat(format: HeaderMapFileFormat)
    |          `- warning: associated value 'sameFormat(format:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HeaderMapFileFormat'; this is an error in the Swift 6 language mode
 49 |   }
 50 | }
/host/spi-builder-workspace/Sources/HeaderMapFrontend/FileFormat.swift:23:13: note: consider making enum 'HeaderMapFileFormat' conform to the 'Sendable' protocol
21 | // SOFTWARE.
22 |
23 | public enum HeaderMapFileFormat: String {
   |             `- note: consider making enum 'HeaderMapFileFormat' conform to the 'Sendable' protocol
24 |   /** Binary format as defined by Clang */
25 |   case hmap
/host/spi-builder-workspace/Sources/HeaderMapFrontend/ConvertCommands.swift:74:10: warning: associated value 'unknownFormat(url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
 72 |
 73 |   public enum Error: LocalizedError {
 74 |     case unknownFormat(url: URL)
    |          `- warning: associated value 'unknownFormat(url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
 75 |   }
 76 | }
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/HeaderMapFrontend/ConvertCommands.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 21 | // SOFTWARE.
 22 |
 23 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 24 | import HeaderMapCore
 25 |
[39/44] Compiling HeaderMapFrontend Command.swift
[40/44] Compiling HeaderMapFrontend ConvertCommands.swift
/host/spi-builder-workspace/Sources/HeaderMapFrontend/ConvertCommands.swift:48:10: warning: associated value 'sameFormat(format:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HeaderMapFileFormat'; this is an error in the Swift 6 language mode
 46 |
 47 |   public enum Error: LocalizedError {
 48 |     case sameFormat(format: HeaderMapFileFormat)
    |          `- warning: associated value 'sameFormat(format:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HeaderMapFileFormat'; this is an error in the Swift 6 language mode
 49 |   }
 50 | }
/host/spi-builder-workspace/Sources/HeaderMapFrontend/FileFormat.swift:23:13: note: consider making enum 'HeaderMapFileFormat' conform to the 'Sendable' protocol
21 | // SOFTWARE.
22 |
23 | public enum HeaderMapFileFormat: String {
   |             `- note: consider making enum 'HeaderMapFileFormat' conform to the 'Sendable' protocol
24 |   /** Binary format as defined by Clang */
25 |   case hmap
/host/spi-builder-workspace/Sources/HeaderMapFrontend/ConvertCommands.swift:74:10: warning: associated value 'unknownFormat(url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
 72 |
 73 |   public enum Error: LocalizedError {
 74 |     case unknownFormat(url: URL)
    |          `- warning: associated value 'unknownFormat(url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
 75 |   }
 76 | }
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/HeaderMapFrontend/ConvertCommands.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 21 | // SOFTWARE.
 22 |
 23 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 24 | import HeaderMapCore
 25 |
[41/45] Wrapping AST for HeaderMapFrontend for debugging
[43/51] Compiling hmap StringExtensions.swift
[44/51] Compiling hmap main.swift
[45/51] Compiling hmap ReturnCodes.swift
[46/51] Emitting module hmap
[47/51] Compiling hmap Convert.swift
[48/51] Compiling hmap Print.swift
[49/52] Wrapping AST for hmap for debugging
[50/52] Write Objects.LinkFileList
[51/52] Linking hmap
Build complete! (25.96s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "commander",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.8.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kylef/Commander.git"
    }
  ],
  "manifest_display_name" : "hmap",
  "name" : "hmap",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "hmap",
      "targets" : [
        "hmap"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "hmap",
      "module_type" : "SwiftTarget",
      "name" : "hmap",
      "path" : "Sources/hmap",
      "product_dependencies" : [
        "Commander"
      ],
      "product_memberships" : [
        "hmap"
      ],
      "sources" : [
        "Convert.swift",
        "Print.swift",
        "ReturnCodes.swift",
        "StringExtensions.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "HeaderMapCore",
        "HeaderMapFrontend"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "HeaderMapTesting",
      "module_type" : "SwiftTarget",
      "name" : "HeaderMapTesting",
      "path" : "Sources/HeaderMapTesting",
      "sources" : [
        "TestingExtensions.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HeaderMapFrontendTests",
      "module_type" : "SwiftTarget",
      "name" : "HeaderMapFrontendTests",
      "path" : "Tests/HeaderMapFrontendTests",
      "sources" : [
        "CommandTests.swift",
        "CommandTestsData.swift"
      ],
      "target_dependencies" : [
        "HeaderMapTesting",
        "HeaderMapFrontend"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HeaderMapFrontend",
      "module_type" : "SwiftTarget",
      "name" : "HeaderMapFrontend",
      "path" : "Sources/HeaderMapFrontend",
      "product_memberships" : [
        "hmap"
      ],
      "sources" : [
        "Command.swift",
        "ConvertCommands.swift",
        "FileFormat.swift",
        "FrontendErrors.swift",
        "PrintCommands.swift"
      ],
      "target_dependencies" : [
        "HeaderMapCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HeaderMapCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "HeaderMapCoreTests",
      "path" : "Tests/HeaderMapCoreTests",
      "sources" : [
        "HeaderMapTests.swift",
        "HeaderMapTestsData.swift"
      ],
      "target_dependencies" : [
        "HeaderMapTesting",
        "HeaderMapCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HeaderMapCore",
      "module_type" : "SwiftTarget",
      "name" : "HeaderMapCore",
      "path" : "Sources/HeaderMapCore",
      "product_memberships" : [
        "hmap"
      ],
      "sources" : [
        "BinaryHeaderMap.swift",
        "ByteBuffer.swift",
        "HeaderMap.swift",
        "HeaderMapError.swift",
        "HeaderMapMaker.swift",
        "JSONHeaderMap.swift",
        "extensions/ArrayExtensions.swift",
        "extensions/DictionaryExtensions.swift",
        "extensions/NumberExtensions.swift",
        "extensions/StringExtensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.1"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.