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

Failed to build swift-transformers with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ashvardanian/swift-transformers.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ashvardanian/swift-transformers
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 89fb5d9 Fix: UTF8 support in Unigram tokenizer
Cloned https://github.com/ashvardanian/swift-transformers.git
Revision (git rev-parse @):
89fb5d97e1df347f9f588f62fc538dcad6fdb16c
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/ashvardanian/swift-transformers.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/ashvardanian/swift-transformers.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/21] Write sources
[6/21] Write transformers-entitlement.plist
[7/21] Copying t5_tokenizer_config.json
[7/21] Write hub-cli-entitlement.plist
[7/21] Write sources
[12/21] Copying gpt2_tokenizer_config.json
[13/21] Write sources
[14/21] Write swift-version-6F35C1178C84523A.txt
[16/37] Emitting module ArgumentParserToolInfo
[17/37] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/75] Compiling ArgumentParser ArgumentHelp.swift
[19/75] Compiling ArgumentParser ArgumentVisibility.swift
[20/75] Compiling ArgumentParser CompletionKind.swift
[21/75] Compiling ArgumentParser Errors.swift
[22/79] Compiling ArgumentParser InputOrigin.swift
[23/79] Compiling ArgumentParser Name.swift
[24/79] Compiling ArgumentParser Parsed.swift
[25/79] Compiling ArgumentParser ParsedValues.swift
[26/79] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/79] Compiling ArgumentParser CompletionsGenerator.swift
[28/79] Compiling ArgumentParser FishCompletionsGenerator.swift
[29/79] Compiling ArgumentParser ZshCompletionsGenerator.swift
[30/79] Compiling ArgumentParser Argument.swift
[31/79] Emitting module ArgumentParser
[32/79] Compiling ArgumentParser Platform.swift
[33/79] Compiling ArgumentParser SequenceExtensions.swift
[34/79] Compiling ArgumentParser StringExtensions.swift
[35/79] Compiling ArgumentParser Tree.swift
[36/79] Compiling Hub resource_bundle_accessor.swift
[37/79] Compiling Hub Downloader.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:12:7: warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 | import Combine
 11 |
 12 | class Downloader: NSObject, ObservableObject {
    |       `- warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 13 |     private(set) var destination: URL
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:13:22: warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
 11 |
 12 | class Downloader: NSObject, ObservableObject {
 13 |     private(set) var destination: URL
    |                      `- warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
 14 |
 15 |     enum DownloadState {
[38/79] Emitting module Hub
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:12:7: warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 | import Combine
 11 |
 12 | class Downloader: NSObject, ObservableObject {
    |       `- warning: non-final class 'Downloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 13 |     private(set) var destination: URL
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Downloader.swift:13:22: warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
 11 |
 12 | class Downloader: NSObject, ObservableObject {
 13 |     private(set) var destination: URL
    |                      `- warning: stored property 'destination' of 'Sendable'-conforming class 'Downloader' is mutable; this is an error in the Swift 6 language mode
 14 |
 15 |     enum DownloadState {
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:125:17: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
123 |     }
124 |
125 |     private var configPromise: Task<Configurations, Error>? = nil
    |                 `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 |
127 |     public init(
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:31:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
    :
 29 |     }
 30 |
 31 |     public static let shared = HubApi()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 32 | }
 33 |
[39/79] Compiling Hub Hub.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:125:17: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
123 |     }
124 |
125 |     private var configPromise: Task<Configurations, Error>? = nil
    |                 `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 |
127 |     public init(
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:31:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
    :
 29 |     }
 30 |
 31 |     public static let shared = HubApi()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 32 | }
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:131:30: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
129 |         hubApi: HubApi = .shared
130 |     ) {
131 |         self.configPromise = Task.init {
    |                              `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
132 |             return try await self.loadConfig(modelName: modelName, hubApi: hubApi)
133 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:131:35: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
129 |         hubApi: HubApi = .shared
130 |     ) {
131 |         self.configPromise = Task.init {
    |                                   `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
132 |             return try await self.loadConfig(modelName: modelName, hubApi: hubApi)
133 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:132:30: warning: capture of 'self' with non-sendable type 'LanguageModelConfigurationFromHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | }
117 |
118 | public class LanguageModelConfigurationFromHub {
    |              `- note: class 'LanguageModelConfigurationFromHub' does not conform to the 'Sendable' protocol
119 |     struct Configurations {
120 |         var modelConfig: Config
    :
130 |     ) {
131 |         self.configPromise = Task.init {
132 |             return try await self.loadConfig(modelName: modelName, hubApi: hubApi)
    |                              `- warning: capture of 'self' with non-sendable type 'LanguageModelConfigurationFromHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 |         }
134 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:132:76: warning: capture of 'hubApi' with non-sendable type 'HubApi' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 |     ) {
131 |         self.configPromise = Task.init {
132 |             return try await self.loadConfig(modelName: modelName, hubApi: hubApi)
    |                                                                            `- warning: capture of 'hubApi' with non-sendable type 'HubApi' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 |         }
134 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:10:15: note: consider making struct 'HubApi' conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:140:30: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
138 |         hubApi: HubApi = .shared
139 |     ) {
140 |         self.configPromise = Task {
    |                              `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
141 |             return try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
142 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:140:30: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
138 |         hubApi: HubApi = .shared
139 |     ) {
140 |         self.configPromise = Task {
    |                              `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
141 |             return try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
142 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:141:30: warning: capture of 'self' with non-sendable type 'LanguageModelConfigurationFromHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | }
117 |
118 | public class LanguageModelConfigurationFromHub {
    |              `- note: class 'LanguageModelConfigurationFromHub' does not conform to the 'Sendable' protocol
119 |     struct Configurations {
120 |         var modelConfig: Config
    :
139 |     ) {
140 |         self.configPromise = Task {
141 |             return try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
    |                              `- warning: capture of 'self' with non-sendable type 'LanguageModelConfigurationFromHub' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |         }
143 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:141:80: warning: capture of 'hubApi' with non-sendable type 'HubApi' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |     ) {
140 |         self.configPromise = Task {
141 |             return try await self.loadConfig(modelFolder: modelFolder, hubApi: hubApi)
    |                                                                                `- warning: capture of 'hubApi' with non-sendable type 'HubApi' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |         }
143 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:10:15: note: consider making struct 'HubApi' conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:147:38: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
145 |     public var modelConfig: Config {
146 |         get async throws {
147 |             try await configPromise!.value.modelConfig
    |                                      `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
148 |         }
149 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:153:57: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
151 |     public var tokenizerConfig: Config? {
152 |         get async throws {
153 |             if let hubConfig = try await configPromise!.value.tokenizerConfig {
    |                                                         `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
154 |                 // Try to guess the class if it's not present and the modelType is
155 |                 if let _ = hubConfig.tokenizerClass?.stringValue { return hubConfig }
/Users/admin/builder/spi-builder-workspace/Sources/Hub/Hub.swift:178:38: warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
117 |
118 | public class LanguageModelConfigurationFromHub {
119 |     struct Configurations {
    |            `- note: consider making struct 'Configurations' conform to the 'Sendable' protocol
120 |         var modelConfig: Config
121 |         var tokenizerConfig: Config?
    :
176 |     public var tokenizerData: Config {
177 |         get async throws {
178 |             try await configPromise!.value.tokenizerData
    |                                      `- warning: type 'LanguageModelConfigurationFromHub.Configurations' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
179 |         }
180 |     }
[40/79] Compiling Hub HubApi.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:31:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
    :
 29 |     }
 30 |
 31 |     public static let shared = HubApi()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 32 | }
 33 |
[41/91] Compiling ArgumentParser ParserError.swift
[42/91] Compiling ArgumentParser SplitArguments.swift
[43/91] Compiling ArgumentParser DumpHelpGenerator.swift
[44/91] Compiling ArgumentParser HelpCommand.swift
[45/91] Compiling ArgumentParser Flag.swift
[46/91] Compiling ArgumentParser NameSpecification.swift
[47/91] Compiling ArgumentParser Option.swift
[48/91] Compiling ArgumentParser OptionGroup.swift
[49/91] Compiling ArgumentParser ParsableArguments.swift
[50/91] Compiling ArgumentParser ParsableArgumentsValidation.swift
[51/91] Compiling ArgumentParser ParsableCommand.swift
[52/91] Compiling ArgumentParser ArgumentDecoder.swift
[53/91] Compiling ArgumentParser ArgumentDefinition.swift
[54/91] Compiling ArgumentParser ArgumentSet.swift
[55/91] Compiling ArgumentParser CommandParser.swift
[56/91] Compiling ArgumentParser InputKey.swift
[57/91] Compiling ArgumentParser AsyncParsableCommand.swift
[58/91] Compiling ArgumentParser CommandConfiguration.swift
[59/91] Compiling ArgumentParser EnumerableFlag.swift
[60/91] Compiling ArgumentParser ExpressibleByArgument.swift
[61/91] Compiling ArgumentParser HelpGenerator.swift
[62/91] Compiling ArgumentParser MessageInfo.swift
[63/91] Compiling ArgumentParser UsageGenerator.swift
[64/91] Compiling ArgumentParser CollectionExtensions.swift
[65/93] Emitting module HubCLI
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:10:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | @main
 9 | struct HubCLI: AsyncParsableCommand {
10 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 |         abstract: "Hugging Face Hub Client",
12 |         version: "0.0.1",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 2 | import Foundation
 3 |
   :
 8 | @main
 9 | struct HubCLI: AsyncParsableCommand {
10 |     static let configuration = CommandConfiguration(
   |                |- note: annotate 'configuration' 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
11 |         abstract: "Hugging Face Hub Client",
12 |         version: "0.0.1",
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:30:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Download: AsyncParsableCommand, SubcommandWithToken {
30 |     static let configuration = CommandConfiguration(abstract: "Snapshot download from the Hub")
   |                |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'configuration' 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
31 |
32 |     enum RepoType: String, ExpressibleByArgument {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:73:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | struct Whoami: AsyncParsableCommand, SubcommandWithToken {
73 |     static let configuration = CommandConfiguration(abstract: "whoami")
   |                |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'configuration' 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
74 |
75 |     @Option(help: "Hugging Face token. If empty, will attempt to read from the filesystem at \(defaultTokenLocation)")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
[66/93] Compiling Tokenizers UnigramTokenizer.swift
[67/93] Compiling Tokenizers Trie.swift
[68/94] Compiling Tokenizers TokenLattice.swift
[69/94] Compiling Tokenizers PostProcessor.swift
[70/94] Compiling Tokenizers Tokenizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:31:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
    :
 29 |     }
 30 |
 31 |     public static let shared = HubApi()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 32 | }
 33 |
[71/94] Compiling HubCLI HubCLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:10:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | @main
 9 | struct HubCLI: AsyncParsableCommand {
10 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 |         abstract: "Hugging Face Hub Client",
12 |         version: "0.0.1",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 2 | import Foundation
 3 |
   :
 8 | @main
 9 | struct HubCLI: AsyncParsableCommand {
10 |     static let configuration = CommandConfiguration(
   |                |- note: annotate 'configuration' 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
11 |         abstract: "Hugging Face Hub Client",
12 |         version: "0.0.1",
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:30:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Download: AsyncParsableCommand, SubcommandWithToken {
30 |     static let configuration = CommandConfiguration(abstract: "Snapshot download from the Hub")
   |                |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'configuration' 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
31 |
32 |     enum RepoType: String, ExpressibleByArgument {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/HubCLI/HubCLI.swift:73:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | struct Whoami: AsyncParsableCommand, SubcommandWithToken {
73 |     static let configuration = CommandConfiguration(abstract: "whoami")
   |                |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'configuration' 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
74 |
75 |     @Option(help: "Hugging Face token. If empty, will attempt to read from the filesystem at \(defaultTokenLocation)")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
[71/94] Write Objects.LinkFileList
[73/94] Compiling Tokenizers PreTokenizer.swift
[74/94] Compiling Tokenizers ByteEncoder.swift
[75/94] Compiling Tokenizers Decoder.swift
[76/94] Emitting module Tokenizers
/Users/admin/builder/spi-builder-workspace/Sources/Hub/HubApi.swift:31:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public struct HubApi {
    |               `- note: consider making struct 'HubApi' conform to the 'Sendable' protocol
 11 |     var downloadBase: URL
 12 |     var hfToken: String?
    :
 29 |     }
 30 |
 31 |     public static let shared = HubApi()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HubApi' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 32 | }
 33 |
[77/94] Compiling Tokenizers Normalizer.swift
[78/94] Compiling Tokenizers BPETokenizer.swift
[79/94] Compiling Tokenizers BertTokenizer.swift
[80/94] Compiling Tokenizers Utils.swift
[80/94] Linking hub-cli
[81/94] Applying hub-cli
[83/94] Emitting module TensorUtils
[84/94] Compiling TensorUtils TopPLogitsWarper.swift
[85/94] Compiling TensorUtils TopKLogitsWarper.swift
[86/94] Compiling TensorUtils MLMultiArray+Utils.swift
[87/94] Compiling TensorUtils TemperatureLogitsWarper.swift
[88/94] Compiling TensorUtils LogitsProcessor.swift
[89/94] Compiling TensorUtils MLShapedArray+Utils.swift
[90/94] Compiling TensorUtils Math.swift
[91/94] Compiling TensorUtils LogitsWarper.swift
[92/97] Compiling Generation GenerationConfig.swift
[93/97] Emitting module Generation
[94/97] Compiling Generation Generation.swift
error: compile command failed due to signal 6 (use -v to see invocation)
[95/100] Compiling Models LanguageModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Models/LanguageModel.swift:215:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
213 | }
214 |
215 | extension String: Error {}
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
216 |
[96/100] Emitting module Models
/Users/admin/builder/spi-builder-workspace/Sources/Models/LanguageModel.swift:215:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
213 | }
214 |
215 | extension String: Error {}
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
216 |
Begin Error in Function: '$s6Models19TextGenerationModelPAAE8generate6config6prompt8callbackSS0C00C6ConfigV_SSySScSgtYaKF'
Error! Found a leak due to a consuming post-dominance failure!
Value:   %13 = copy_value %12 : $@callee_guaranteed (@guaranteed Array<Int>, GenerationConfig) -> @out any MLShapedArrayProtocol // users: %25, %14
Post Dominating Failure Blocks:
 bb2
End Error in Function: '$s6Models19TextGenerationModelPAAE8generate6config6prompt8callbackSS0C00C6ConfigV_SSySScSgtYaKF'
Found ownership error?!
triggering standard assertion failure routine
UNREACHABLE executed at /Users/ec2-user/jenkins/workspace/oss-swift-6.0-package-macos/swift/lib/SIL/Verifier/LinearLifetimeCheckerPrivate.h:211!
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/Models/LanguageModel.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/Models/LanguageModelTypes.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Models.build/LanguageModelTypes.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Models.build/LanguageModelTypes.swiftdeps -target arm64-apple-macosx13.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -Xcc -F -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name Models -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 14.4 -target-sdk-name macosx14.4 -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Models.build/LanguageModelTypes.swift.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1.	Apple Swift version 6.0-dev (LLVM 4b0b1f9e1a69523, Swift 91a3abcf816bc36)
2.	Compiling with effective version 5.10
3.	While verifying SIL function "@$s6Models19TextGenerationModelPAAE8generate6config6prompt8callbackSS0C00C6ConfigV_SSySScSgtYaKF".
 for 'generate(config:prompt:callback:)' (at /Users/admin/builder/spi-builder-workspace/Sources/Models/LanguageModelTypes.swift:39:5)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x00000001084dbbf0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x00000001084da3bc llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x00000001084dc238 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x0000000180c25a24 _sigtramp + 56
4  libsystem_pthread.dylib  0x0000000180bf5cc0 pthread_kill + 288
5  libsystem_c.dylib        0x0000000180b01a40 abort + 180
6  swift-frontend           0x000000010845b1c4 llvm::install_out_of_memory_new_handler() + 0
7  swift-frontend           0x0000000103fb1310 swift::LinearLifetimeChecker::ErrorBuilder::tryDumpErrorCounter() const + 0
8  swift-frontend           0x0000000103fb2174 swift::LinearLifetimeChecker::ErrorBuilder::handleLeak(llvm::function_ref<void ()>&&) + 584
9  swift-frontend           0x0000000103faf6fc swift::LinearLifetimeChecker::checkValueImpl(swift::SILValue, llvm::ArrayRef<swift::Operand*>, llvm::ArrayRef<swift::Operand*>, swift::LinearLifetimeChecker::ErrorBuilder&, std::__1::optional<llvm::function_ref<void (swift::SILBasicBlock*)>>, std::__1::optional<llvm::function_ref<void (swift::Operand*)>>) + 3940
10 swift-frontend           0x0000000103fafd20 swift::LinearLifetimeChecker::checkValue(swift::SILValue, llvm::ArrayRef<swift::Operand*>, llvm::ArrayRef<swift::Operand*>, swift::LinearLifetimeChecker::ErrorBuilder&) + 44
11 swift-frontend           0x0000000103fb7648 swift::SILValueOwnershipChecker::check() + 544
12 swift-frontend           0x0000000103fb9254 verifySILValueHelper(swift::SILFunction const*, swift::SILValue, swift::LinearLifetimeChecker::ErrorBuilder&, swift::DeadEndBlocks*, swift::GuaranteedPhiVerifier&) + 152
13 swift-frontend           0x0000000103fb912c swift::SILValue::verifyOwnership(swift::DeadEndBlocks*) const + 216
14 swift-frontend           0x0000000103fd9cf4 (anonymous namespace)::SILVerifier::checkValueBaseOwnership(swift::ValueBase*) + 172
15 swift-frontend           0x0000000103fdcc20 (anonymous namespace)::SILVerifier::visitSILInstruction(swift::SILInstruction*) + 6280
16 swift-frontend           0x0000000103fccf08 swift::SILVisitorBase<(anonymous namespace)::SILVerifier, void>::visitSILBasicBlock(swift::SILBasicBlock*) + 40920
17 swift-frontend           0x0000000103fc2e30 (anonymous namespace)::SILVerifier::visitSILBasicBlock(swift::SILBasicBlock*) + 28
18 swift-frontend           0x0000000103fc15c8 (anonymous namespace)::SILVerifier::visitSILFunction(swift::SILFunction*) + 10456
19 swift-frontend           0x0000000103fbabb0 swift::SILFunction::verify(swift::CalleeCache*, bool, bool, bool) const + 204
20 swift-frontend           0x0000000103fbdd3c swift::SILModule::verify(swift::CalleeCache*, bool, bool) const + 192
21 swift-frontend           0x0000000103fbdc14 swift::SILModule::verify(bool, bool) const + 140
22 swift-frontend           0x00000001032935d8 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 148
23 swift-frontend           0x0000000103055858 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 796
24 swift-frontend           0x0000000103054f2c swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 648
25 swift-frontend           0x0000000103066248 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
26 swift-frontend           0x0000000103057590 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
27 swift-frontend           0x00000001030564fc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2388
28 swift-frontend           0x0000000102e703b0 swift::mainEntry(int, char const**) + 3096
29 dyld                     0x00000001808750e0 start + 2360
Fetching https://github.com/apple/swift-argument-parser.git
[1/11679] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.58s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (0.55s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.3.0
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.