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 HashGenerator, reference main (4a904b), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 17:33:44 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jordanbaird/HashGenerator.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jordanbaird/HashGenerator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4a904b3 Update README.md
Cloned https://github.com/jordanbaird/HashGenerator.git
Revision (git rev-parse @):
4a904b341271457fab7b1cafa4376f85b3df19cd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jordanbaird/HashGenerator.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "hashgenerator",
      "name": "HashGenerator",
      "url": "https://github.com/jordanbaird/HashGenerator.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HashGenerator",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/jordanbaird/HashGenerator.git
[1/276] Fetching hashgenerator
Fetched https://github.com/jordanbaird/HashGenerator.git from cache (0.97s)
Creating working copy for https://github.com/jordanbaird/HashGenerator.git
Working copy of https://github.com/jordanbaird/HashGenerator.git resolved at main (4a904b3)
warning: '.resolve-product-dependencies': dependency 'hashgenerator' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/jordanbaird/HashGenerator.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling HashGenerator HashGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/HashGenerator/HashGenerator.swift:245:33: warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
243 |     public func hash<T>(_ value: T) -> Digest {
244 |         var value = value
245 |         return hash(Data(bytes: &value, count: MemoryLayout<T>.size))
    |                                 `- warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
246 |     }
247 |
[4/4] Emitting module HashGenerator
/Users/admin/builder/spi-builder-workspace/Sources/HashGenerator/HashGenerator.swift:245:33: warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
243 |     public func hash<T>(_ value: T) -> Digest {
244 |         var value = value
245 |         return hash(Data(bytes: &value, count: MemoryLayout<T>.size))
    |                                 `- warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
246 |     }
247 |
Build complete! (6.45s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HashGenerator",
  "name" : "HashGenerator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "HashGenerator",
      "targets" : [
        "HashGenerator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HashGeneratorTests",
      "module_type" : "SwiftTarget",
      "name" : "HashGeneratorTests",
      "path" : "Tests/HashGeneratorTests",
      "sources" : [
        "HashGeneratorTests.swift"
      ],
      "target_dependencies" : [
        "HashGenerator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HashGenerator",
      "module_type" : "SwiftTarget",
      "name" : "HashGenerator",
      "path" : "Sources/HashGenerator",
      "product_memberships" : [
        "HashGenerator"
      ],
      "sources" : [
        "HashGenerator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/jordanbaird/hashgenerator/main
Repository:               jordanbaird/HashGenerator
Swift version used:       6.0
Target:                   HashGenerator
Extracting symbol information for 'HashGenerator'...
Finished extracting symbol information for 'HashGenerator'. (2.84s)
Building documentation for 'HashGenerator'...
warning: Parameter 'data' not found in instance method declaration
   --> Sources/HashGenerator/HashGenerator.swift:249:9-249:49
247 |
248 |     /// Hashes the given `Hashable` value and returns a `Digest` instance.
249 +     /// - Parameter data: The data to be hashed.
    |         ╰─suggestion: Remove 'data' parameter documentation
250 |     /// - Returns: A `Digest` instance containing the data computed by the hash function.
251 |     @inlinable
warning: Parameter 'hashable' is missing documentation
   --> Sources/HashGenerator/HashGenerator.swift:249:49-249:49
247 |
248 |     /// Hashes the given `Hashable` value and returns a `Digest` instance.
249 +     /// - Parameter data: The data to be hashed.
    |                                                 ╰─suggestion: Document 'hashable' parameter
250 |     /// - Returns: A `Digest` instance containing the data computed by the hash function.
251 |     @inlinableFinished building documentation for 'HashGenerator' (0.15s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/jordanbaird/hashgenerator/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.62s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.27s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.66s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit DeclarationFragments.swift
[8/57] Compiling SymbolKit Fragment.swift
[9/57] Compiling SymbolKit FragmentKind.swift
[10/57] Compiling SymbolKit FunctionParameter.swift
[11/57] Compiling SymbolKit FunctionSignature.swift
[12/57] Compiling SymbolKit Mixin+Equals.swift
[13/57] Compiling SymbolKit Mixin+Hash.swift
[14/57] Compiling SymbolKit Mixin.swift
[15/57] Compiling SymbolKit LineList.swift
[16/57] Compiling SymbolKit Position.swift
[17/57] Compiling SymbolKit Identifier.swift
[18/57] Compiling SymbolKit KindIdentifier.swift
[19/57] Compiling SymbolKit Location.swift
[20/57] Compiling SymbolKit Mutability.swift
[21/57] Compiling SymbolKit Names.swift
[22/57] Compiling SymbolKit SPI.swift
[23/57] Compiling SymbolKit Snippet.swift
[24/57] Compiling SymbolKit Extension.swift
[25/57] Compiling SymbolKit SemanticVersion.swift
[26/57] Compiling SymbolKit AccessControl.swift
[27/57] Compiling SymbolKit Availability.swift
[28/57] Compiling SymbolKit AvailabilityItem.swift
[29/57] Compiling SymbolKit Domain.swift
[30/57] Compiling SymbolKit Relationship.swift
[31/57] Compiling SymbolKit RelationshipKind.swift
[32/57] Compiling SymbolKit SourceOrigin.swift
[33/57] Compiling SymbolKit GenericConstraints.swift
[34/57] Compiling SymbolKit Swift.swift
[35/57] Compiling SymbolKit GenericConstraint.swift
[36/57] Compiling SymbolKit GenericParameter.swift
[37/57] Compiling SymbolKit Generics.swift
[38/57] Compiling SymbolKit Namespace.swift
[39/57] Compiling SymbolKit SourceRange.swift
[40/57] Compiling SymbolKit Metadata.swift
[41/57] Compiling SymbolKit Module.swift
[42/57] Compiling SymbolKit OperatingSystem.swift
[43/57] Compiling SymbolKit Platform.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets Snippet.swift
[53/57] Emitting module Snippets
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[56/61] Compiling snippet_extract URL+Status.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.63s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/3] Emitting module HashGenerator
/Users/admin/builder/spi-builder-workspace/Sources/HashGenerator/HashGenerator.swift:245:33: warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
243 |     public func hash<T>(_ value: T) -> Digest {
244 |         var value = value
245 |         return hash(Data(bytes: &value, count: MemoryLayout<T>.size))
    |                                 `- warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
246 |     }
247 |
[3/3] Compiling HashGenerator HashGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/HashGenerator/HashGenerator.swift:245:33: warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
243 |     public func hash<T>(_ value: T) -> Digest {
244 |         var value = value
245 |         return hash(Data(bytes: &value, count: MemoryLayout<T>.size))
    |                                 `- warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
246 |     }
247 |
Build of target: 'HashGenerator' complete! (0.66s)
     172
2	/Users/admin/builder/spi-builder-workspace/.docs/jordanbaird/hashgenerator/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/jordanbaird/hashgenerator/main
File count: 172
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-jordanbaird-hashgenerator-main-567417c9.zip to s3://spi-docs-inbox/prod-jordanbaird-hashgenerator-main-567417c9.zip
Copying... [14%]
Copying... [28%]
Copying... [42%]
Copying... [56%]
Copying... [70%]
Copying... [84%]
Copying... [98%]
Copying... [100%]
Done.