Build Information
Failed to build swift-huggingface, reference main (199277), with Swift 6.1 for Android on 31 Oct 2026 12:41:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
| `- error: cannot find 'close' in scope
310 | }
311 | }
[506/549] Compiling HuggingFace Value.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[507/549] Emitting module HuggingFace
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[508/549] Compiling HuggingFace XetDownloadProgress.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[509/549] Compiling HuggingFace ChatCompletion.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[510/549] Compiling HuggingFace FeatureExtraction.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[511/549] Compiling HuggingFace InferenceClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[512/549] Compiling HuggingFace Message.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[513/549] Compiling HuggingFace Provider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[514/549] Compiling HuggingFace SpeechToText.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[515/549] Compiling HuggingFace Pagination.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[516/549] Compiling HuggingFace Paper.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[517/549] Compiling HuggingFace Repo.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[518/549] Compiling HuggingFace ResourceGroup.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[519/549] Compiling HuggingFace Space.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[520/549] Compiling HuggingFace Tags.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[521/549] Compiling HuggingFace User.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[522/549] Compiling HuggingFace TextToImage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[523/549] Compiling HuggingFace TextToVideo.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[524/549] Compiling HuggingFace OAuthClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[525/549] Compiling HuggingFace TokenStorage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[526/549] Compiling HuggingFace CacheLocationProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[527/549] Compiling HuggingFace Data+Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[528/549] Compiling HuggingFace JSONDecoder+Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[529/549] Compiling HuggingFace File.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[530/549] Compiling HuggingFace Git.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[531/549] Compiling HuggingFace HubCache.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[532/549] Compiling HuggingFace HubClient+Buckets.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[533/549] Compiling HuggingFace HubClient+Collections.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[534/549] Compiling HuggingFace HubClient+Datasets.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[535/549] Compiling HuggingFace HubClient+Discussions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[536/549] Compiling HuggingFace AccessRequest.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[537/549] Compiling HuggingFace Billing.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[538/549] Compiling HuggingFace Bucket.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[539/549] Compiling HuggingFace Collection.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[540/549] Compiling HuggingFace CommaSeparatedList.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[541/549] Compiling HuggingFace Dataset.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[542/549] Compiling HuggingFace Discussion.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[543/549] Compiling HuggingFace HubClient+Files.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[544/549] Compiling HuggingFace HubClient+Git.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[545/549] Compiling HuggingFace HubClient+Models.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[546/549] Compiling HuggingFace HubClient+OAuth.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[547/549] Compiling HuggingFace HubClient+Organizations.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[548/549] Compiling HuggingFace HubClient+Pagination.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[549/549] Compiling HuggingFace HubClient+Papers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin ReplayPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/17] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[6/17] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[7/17] Emitting module CryptoBoringWrapper
[8/17] Compiling CryptoBoringWrapper EllipticCurve.swift
[9/17] Compiling CryptoBoringWrapper RandomBytes.swift
[10/17] Compiling CryptoBoringWrapper FiniteFieldArithmeticContext.swift
[11/17] Compiling CryptoBoringWrapper ArbitraryPrecisionInteger.swift
[12/17] Compiling CryptoBoringWrapper EllipticCurvePoint.swift
[14/18] Emitting module EventSource
[15/18] Compiling EventSource AsyncSequence+Events.swift
[16/18] Compiling EventSource EventSource+AsyncHTTPClient.swift
[17/18] Compiling EventSource AsyncEventsSequence.swift
[18/18] Compiling EventSource EventSource.swift
[20/103] Compiling Crypto HPKE-LabeledExtract.swift
[21/103] Compiling Crypto HPKE-Utils.swift
[22/103] Compiling Crypto DHKEM.swift
[23/103] Compiling Crypto HPKE-KEM-Curve25519.swift
[24/103] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[25/103] Compiling Crypto HPKE-KEM.swift
[26/103] Compiling Crypto HPKE-Errors.swift
[27/103] Compiling Crypto HPKE.swift
[28/103] Compiling Crypto HPKE-Context.swift
[29/103] Compiling Crypto HPKE-KeySchedule.swift
[30/103] Compiling Crypto HPKE-Modes.swift
[31/103] Compiling Crypto Insecure.swift
[32/114] Compiling Crypto ASN1Null.swift
[33/114] Compiling Crypto ASN1OctetString.swift
[34/114] Compiling Crypto ASN1Strings.swift
[35/114] Compiling Crypto ArraySliceBigint.swift
[36/114] Compiling Crypto GeneralizedTime.swift
[37/114] Compiling Crypto ObjectIdentifier.swift
[38/114] Compiling Crypto ECDSASignature.swift
[39/114] Compiling Crypto PEMDocument.swift
[40/114] Compiling Crypto PKCS8PrivateKey.swift
[41/114] Compiling Crypto SEC1PrivateKey.swift
[42/114] Compiling Crypto SubjectPublicKeyInfo.swift
[43/114] Compiling Crypto CryptoError_boring.swift
[44/114] Compiling Crypto AES-GCM.swift
[45/114] Compiling Crypto AES-GCM_boring.swift
[46/114] Compiling Crypto ChaChaPoly_boring.swift
[47/114] Compiling Crypto ChaChaPoly.swift
[48/114] Compiling Crypto Cipher.swift
[49/114] Compiling Crypto Nonces.swift
[50/114] Compiling Crypto ASN1.swift
[51/114] Compiling Crypto ASN1Any.swift
[52/114] Compiling Crypto ASN1BitString.swift
[53/114] Compiling Crypto ASN1Boolean.swift
[54/114] Compiling Crypto ASN1Identifier.swift
[55/114] Compiling Crypto ASN1Integer.swift
[56/114] Compiling Crypto HKDF.swift
[57/114] Compiling Crypto AESWrap.swift
[58/114] Compiling Crypto AESWrap_boring.swift
[59/114] Compiling Crypto Ed25519_boring.swift
[60/114] Compiling Crypto NISTCurvesKeys_boring.swift
[61/114] Compiling Crypto X25519Keys_boring.swift
[62/114] Compiling Crypto Curve25519.swift
[63/114] Compiling Crypto Ed25519Keys.swift
[64/114] Compiling Crypto NISTCurvesKeys.swift
[65/114] Compiling Crypto X25519Keys.swift
[66/114] Compiling Crypto SymmetricKeys.swift
[67/114] Compiling Crypto HMAC.swift
[68/114] Compiling Crypto CryptoKitErrors.swift
[69/114] Compiling Crypto Digest_boring.swift
[70/114] Compiling Crypto Digest.swift
[71/114] Compiling Crypto Digests.swift
[72/114] Compiling Crypto HashFunctions.swift
[73/114] Compiling Crypto HashFunctions_SHA2.swift
[74/114] Compiling Crypto HashFunctions_SHA3.swift
[75/114] Compiling Crypto Digest_xkcp.swift
[76/114] Compiling Crypto HPKE-AEAD.swift
[77/114] Compiling Crypto HPKE-Ciphersuite.swift
[78/114] Compiling Crypto HPKE-KDF.swift
[79/114] Compiling Crypto HPKE-KexKeyDerivation.swift
[80/114] Compiling Crypto MACFunctions.swift
[81/114] Compiling Crypto MessageAuthenticationCode.swift
[82/114] Compiling Crypto AES.swift
[83/114] Compiling Crypto ECDSASignature_boring.swift
[84/114] Compiling Crypto ECDSA_boring.swift
[85/114] Compiling Crypto EdDSA_boring.swift
[86/114] Compiling Crypto MLDSA_boring.swift
[87/114] Compiling Crypto MLDSA_wrapper.swift
[88/114] Compiling Crypto ECDSA.swift
[89/114] Compiling Crypto Ed25519.swift
[90/114] Compiling Crypto MLDSA.swift
[91/114] Emitting module Crypto
[92/114] Compiling Crypto Insecure_HashFunctions.swift
[93/114] Compiling Crypto MLKEM_boring.swift
[94/114] Compiling Crypto MLKEM_wrapper.swift
[95/114] Compiling Crypto XWing_boring.swift
[96/114] Compiling Crypto KEM-Errors.swift
[97/114] Compiling Crypto KEM.swift
[98/114] Compiling Crypto MLKEM.swift
[99/114] Compiling Crypto XWing.swift
[100/114] Compiling Crypto ECDH_boring.swift
[101/114] Compiling Crypto DH.swift
[102/114] Compiling Crypto ECDH.swift
[103/114] Compiling Crypto ANSIx963.swift
[104/114] Compiling Crypto Signature.swift
[105/114] Compiling Crypto CryptoKitErrors_boring.swift
[106/114] Compiling Crypto Optional+withUnsafeBytes_boring.swift
[107/114] Compiling Crypto RNG_boring.swift
[108/114] Compiling Crypto SafeCompare_boring.swift
[109/114] Compiling Crypto Zeroization_boring.swift
[110/114] Compiling Crypto _CryptoModuleAnchor.swift
[111/114] Compiling Crypto PrettyBytes.swift
[112/114] Compiling Crypto SafeCompare.swift
[113/114] Compiling Crypto SecureBytes.swift
[114/114] Compiling Crypto Zeroization.swift
[116/165] Compiling HuggingFace HubClient+Repos.swift
[117/165] Compiling HuggingFace HubClient+Spaces.swift
[118/165] Compiling HuggingFace HubClient+User.swift
[119/165] Compiling HuggingFace HubClient.swift
[120/165] Compiling HuggingFace Model.swift
[121/165] Compiling HuggingFace OAuth.swift
[122/165] Compiling HuggingFace Organization.swift
[123/172] Compiling HuggingFace URL+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[124/172] Compiling HuggingFace URLSession+Linux.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[125/172] Compiling HuggingFace FileLock.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[126/172] Compiling HuggingFace HTTPClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[127/172] Compiling HuggingFace MultipartBuilder.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[128/172] Compiling HuggingFace TokenProvider.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[129/172] Compiling HuggingFace Value.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[130/172] Compiling HuggingFace Pagination.swift
[131/172] Compiling HuggingFace Paper.swift
[132/172] Compiling HuggingFace Repo.swift
[133/172] Compiling HuggingFace ResourceGroup.swift
[134/172] Compiling HuggingFace Space.swift
[135/172] Compiling HuggingFace Tags.swift
[136/172] Compiling HuggingFace User.swift
[137/172] Compiling HuggingFace AccessRequest.swift
[138/172] Compiling HuggingFace Billing.swift
[139/172] Compiling HuggingFace Bucket.swift
[140/172] Compiling HuggingFace Collection.swift
[141/172] Compiling HuggingFace CommaSeparatedList.swift
[142/172] Compiling HuggingFace Dataset.swift
[143/172] Compiling HuggingFace Discussion.swift
[144/172] Compiling HuggingFace File.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[145/172] Compiling HuggingFace Git.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[146/172] Compiling HuggingFace HubCache.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[147/172] Compiling HuggingFace HubClient+Buckets.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[148/172] Compiling HuggingFace HubClient+Collections.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[149/172] Compiling HuggingFace HubClient+Datasets.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[150/172] Compiling HuggingFace HubClient+Discussions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[151/172] Compiling HuggingFace TextToImage.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[152/172] Compiling HuggingFace TextToVideo.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[153/172] Compiling HuggingFace OAuthClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[154/172] Compiling HuggingFace TokenStorage.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[155/172] Compiling HuggingFace CacheLocationProvider.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[156/172] Compiling HuggingFace Data+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[157/172] Compiling HuggingFace JSONDecoder+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[158/172] Compiling HuggingFace XetDownloadProgress.swift
[159/172] Compiling HuggingFace ChatCompletion.swift
[160/172] Compiling HuggingFace FeatureExtraction.swift
[161/172] Compiling HuggingFace InferenceClient.swift
[162/172] Compiling HuggingFace Message.swift
[163/172] Compiling HuggingFace Provider.swift
[164/172] Compiling HuggingFace SpeechToText.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[165/172] Emitting module HuggingFace
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[166/172] Compiling HuggingFace HubClient+Files.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[167/172] Compiling HuggingFace HubClient+Git.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[168/172] Compiling HuggingFace HubClient+Models.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[169/172] Compiling HuggingFace HubClient+OAuth.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[170/172] Compiling HuggingFace HubClient+Organizations.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[171/172] Compiling HuggingFace HubClient+Pagination.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
[172/172] Compiling HuggingFace HubClient+Papers.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1256:41: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1254 | if appending {
1255 | if !FileManager.default.fileExists(atPath: targetURL.path) {
1256 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1257 | }
1258 | let handle = try FileHandle(forWritingTo: targetURL)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1263:37: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1261 | effectiveOffset = resumeOffset
1262 | } else {
1263 | FileManager.default.createFile(atPath: targetURL.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
1264 | fileHandle = try FileHandle(forWritingTo: targetURL)
1265 | effectiveOffset = 0
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2022:21: error: cannot find 'fnmatch' in scope
2020 | guard !globs.isEmpty else { return true }
2021 | return globs.contains { glob in
2022 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2023 | }
2024 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 | let lfsEntries =
2057 | workItems
2058 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2059 | .sorted {
2060 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 | return $0.weight > $1.weight
2064 | }
2065 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 | ? []
2072 | : workItems
2073 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
2074 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2103:21: warning: no 'async' operations occur within 'await' expression
2101 | samplingTask?.cancel()
2102 | if let samplingTask {
2103 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2104 | }
2105 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2110:17: warning: no 'async' operations occur within 'await' expression
2108 | samplingTask?.cancel()
2109 | if let samplingTask {
2110 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
2111 | }
2112 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2313:17: error: cannot find 'fnmatch' in scope
2311 | guard !globs.isEmpty else { return true }
2312 | return globs.contains { glob in
2313 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2314 | }
2315 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2509:17: error: cannot find 'fnmatch' in scope
2507 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2508 | let hasMatch = globs.contains { glob in
2509 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2510 | }
2511 | if hasMatch {
BUILD FAILURE 6.1 android