Build Information
Failed to build whisperkit, reference v0.18.0 (e2adab), with Swift 6.2 for Wasm on 20 Apr 2026 01:50:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/argmaxinc/argmax-oss-swift.git
Reference: v0.18.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/argmaxinc/argmax-oss-swift
* tag v0.18.0 -> FETCH_HEAD
HEAD is now at e2adabb Release v0.18.0
Cloned https://github.com/argmaxinc/argmax-oss-swift.git
Revision (git rev-parse @):
e2adabbe7d98dc4d0ab9a5b75424ecc42a9cdbef
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/argmaxinc/argmax-oss-swift.git at v0.18.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/argmaxinc/argmax-oss-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/17529] Fetching swift-argument-parser
[177/23765] Fetching swift-argument-parser, swift-transformers
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.65s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (1.65s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.1.9 (2.47s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/ibireme/yyjson.git
[1/1051] Fetching swift-jinja
[33/24620] Fetching swift-jinja, swift-collections
[2702/42036] Fetching swift-jinja, swift-collections, swift-crypto
[2703/46479] Fetching swift-jinja, swift-collections, swift-crypto, yyjson
Fetched https://github.com/ibireme/yyjson.git from cache (2.24s)
[26588/42036] Fetching swift-jinja, swift-collections, swift-crypto
Fetched https://github.com/huggingface/swift-jinja.git from cache (3.26s)
[37328/40985] Fetching swift-collections, swift-crypto
Fetched https://github.com/apple/swift-collections.git from cache (3.38s)
[16023/17416] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (4.55s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (5.33s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (0.71s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.5 (0.81s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.15s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (6.76s)
Fetching https://github.com/apple/swift-asn1.git
[1/1803] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.64s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (1.67s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.3.5
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.0
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.1.9
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/408] Write sources
[8/408] Write swift-version-24593BA9C3E375BF.txt
[8/408] Copying t5_tokenizer_config.json
[8/408] Copying gpt2_tokenizer_config.json
[8/408] Write sources
[16/408] Compiling CXKCPShims shims.c
[17/426] Compiling aes.cc
[18/426] Compiling cpu_aarch64_win.cc
[19/426] Compiling cpu_aarch64_openbsd.cc
[20/426] Compiling cpu_aarch64_sysreg.cc
[21/426] Compiling SimpleFIPS202.c
[22/426] Compiling KeccakSponge.c
[23/426] Compiling KeccakHash.c
[24/426] Compiling fiat_p256_adx_sqr.S
[25/426] Compiling a_bool.cc
[26/426] Compiling fiat_curve25519_adx_mul.S
[27/426] Compiling fiat_p256_adx_mul.S
[28/426] Compiling fiat_curve25519_adx_square.S
[29/426] Compiling md5-x86_64-linux.S
[30/426] Compiling md5-x86_64-apple.S
[31/426] Compiling md5-586-linux.S
[32/426] Compiling md5-586-apple.S
[33/426] Compiling chacha20_poly1305_x86_64-linux.S
[34/426] Compiling chacha20_poly1305_x86_64-apple.S
[35/426] Compiling chacha20_poly1305_armv8-win.S
[36/426] Compiling chacha20_poly1305_armv8-linux.S
[37/426] Compiling chacha20_poly1305_armv8-apple.S
[38/426] Compiling CCryptoBoringSSLShims shims.c
[39/426] Compiling chacha-x86_64-linux.S
[40/426] Compiling chacha-x86_64-apple.S
[41/426] Compiling chacha-x86-apple.S
[42/426] Compiling chacha-x86-linux.S
[43/426] Compiling chacha-armv8-linux.S
[44/426] Compiling chacha-armv8-win.S
[45/426] Compiling a_bitstr.cc
[46/426] Compiling chacha-armv8-apple.S
[47/426] Compiling aes128gcmsiv-x86_64-linux.S
[48/426] Compiling chacha-armv4-linux.S
[49/426] Compiling aes128gcmsiv-x86_64-apple.S
[50/426] Compiling x86_64-mont5-linux.S
[51/426] Compiling x86_64-mont5-apple.S
[52/426] Compiling x86_64-mont-linux.S
[54/426] Emitting module InternalCollectionsUtilities
[54/428] Compiling x86_64-mont-apple.S
[55/428] Compiling x86-mont-apple.S
[56/428] Compiling x86-mont-linux.S
[57/428] Compiling err_data.cc
[58/428] Compiling vpaes-x86_64-linux.S
[59/428] Compiling vpaes-x86-linux.S
[60/428] Compiling vpaes-armv8-win.S
[61/428] Compiling vpaes-x86-apple.S
[62/428] Compiling vpaes-x86_64-apple.S
[63/428] Compiling vpaes-armv8-apple.S
[64/428] Compiling sha512-x86_64-apple.S
[64/428] Compiling vpaes-armv8-linux.S
[66/428] Compiling sha512-x86_64-linux.S
[67/428] Compiling vpaes-armv7-linux.S
[68/428] Compiling sha512-armv8-linux.S
[69/428] Compiling sha512-armv8-apple.S
[70/428] Compiling sha512-armv8-win.S
[71/428] Compiling sha512-586-linux.S
[72/428] Compiling sha512-586-apple.S
[73/428] Compiling sha512-armv4-linux.S
[74/428] Compiling sha256-x86_64-apple.S
[75/428] Compiling sha256-x86_64-linux.S
[76/428] Compiling sha256-armv8-linux.S
[77/428] Compiling sha256-armv8-apple.S
[78/428] Compiling sha256-armv8-win.S
[79/428] Compiling sha256-586-linux.S
[80/428] Compiling sha256-armv4-linux.S
[81/428] Compiling sha256-586-apple.S
[82/428] Compiling sha1-x86_64-linux.S
[83/428] Compiling sha1-x86_64-apple.S
[84/428] Compiling sha1-armv8-linux.S
[85/428] Compiling sha1-armv8-win.S
[86/428] Compiling sha1-armv8-apple.S
[87/428] Compiling sha1-586-linux.S
[88/428] Compiling sha1-armv4-large-linux.S
[89/428] Compiling sha1-586-apple.S
[90/428] Compiling rsaz-avx2-apple.S
[91/428] Compiling rsaz-avx2-linux.S
[92/428] Compiling rdrand-x86_64-linux.S
[93/428] Compiling p256_beeu-x86_64-asm-linux.S
[94/428] Compiling p256_beeu-x86_64-asm-apple.S
[95/428] Compiling rdrand-x86_64-apple.S
[96/428] Compiling p256_beeu-armv8-asm-linux.S
[97/428] Compiling p256_beeu-armv8-asm-win.S
[98/428] Compiling p256_beeu-armv8-asm-apple.S
[99/428] Compiling p256-armv8-asm-linux.S
[100/428] Compiling p256-x86_64-asm-apple.S
[101/428] Compiling p256-x86_64-asm-linux.S
[102/428] Compiling p256-armv8-asm-apple.S
[103/428] Compiling p256-armv8-asm-win.S
[104/428] Compiling ghashv8-armv8-win.S
[105/428] Compiling ghashv8-armv8-linux.S
[106/428] Compiling ghashv8-armv8-apple.S
[107/428] Compiling ghashv8-armv7-linux.S
[108/428] Compiling ghash-x86_64-linux.S
[109/428] Compiling ghash-x86-apple.S
[110/428] Compiling ghash-x86_64-apple.S
[111/428] Compiling ghash-x86-linux.S
[112/428] Compiling ghash-ssse3-x86_64-linux.S
[113/428] Compiling ghash-ssse3-x86_64-apple.S
[114/428] Compiling ghash-ssse3-x86-linux.S
[115/428] Compiling ghash-ssse3-x86-apple.S
[116/428] Compiling ghash-neon-armv8-win.S
[116/428] Compiling ghash-neon-armv8-linux.S
[118/428] Compiling ghash-neon-armv8-apple.S
[119/428] Compiling ghash-armv4-linux.S
[120/428] Compiling co-586-linux.S
[121/428] Compiling bsaes-armv7-linux.S
[122/428] Compiling co-586-apple.S
[123/428] Compiling bn-armv8-win.S
[124/428] Compiling bn-armv8-linux.S
[125/428] Compiling bn-armv8-apple.S
[126/428] Compiling bn-586-linux.S
[127/428] Compiling bn-586-apple.S
[128/428] Compiling armv8-mont-win.S
[129/428] Compiling armv8-mont-linux.S
[130/428] Compiling armv8-mont-apple.S
[131/428] Compiling armv4-mont-linux.S
[132/428] Compiling aesv8-gcm-armv8-apple.S
[133/428] Compiling aesv8-gcm-armv8-win.S
[134/428] Compiling aesv8-gcm-armv8-linux.S
[135/428] Compiling aesv8-armv8-win.S
[136/428] Compiling aesv8-armv8-linux.S
[137/428] Compiling aesv8-armv7-linux.S
[138/428] Compiling aesv8-armv8-apple.S
[139/428] Compiling aesni-x86_64-linux.S
[140/428] Compiling aesni-x86_64-apple.S
[141/428] Compiling aesni-x86-linux.S
[142/428] Compiling aesni-gcm-x86_64-linux.S
[143/428] Compiling aes-gcm-avx512-x86_64-linux.S
[143/428] Compiling aesni-gcm-x86_64-apple.S
[145/428] Compiling aesni-x86-apple.S
[146/428] Compiling aes-gcm-avx2-x86_64-linux.S
[147/428] Compiling aes-gcm-avx512-x86_64-apple.S
[148/428] Compiling aes-gcm-avx2-x86_64-apple.S
[149/428] Compiling xwing.cc
[150/428] Compiling x_x509.cc
[151/428] Compiling x_spki.cc
[152/428] Compiling x_x509a.cc
[153/428] Compiling x_sig.cc
[155/428] Compiling InternalCollectionsUtilities _SortedCollection.swift
[156/428] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[156/428] Compiling x_exten.cc
[158/428] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[159/428] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[160/428] Compiling InternalCollectionsUtilities String+Padding.swift
[161/428] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[162/428] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[163/428] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[164/428] Compiling InternalCollectionsUtilities Span+Extras.swift
[165/428] Compiling InternalCollectionsUtilities Integer rank.swift
[166/428] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[167/428] Compiling InternalCollectionsUtilities UInt+reversed.swift
[168/428] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[169/428] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[169/428] Compiling x_req.cc
[171/428] Compiling InternalCollectionsUtilities Debugging.swift
[172/428] Compiling InternalCollectionsUtilities Descriptions.swift
[173/428] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[174/428] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[175/428] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[176/429] Compiling x_pubkey.cc
[177/429] Compiling x_name.cc
[178/452] Wrapping AST for InternalCollectionsUtilities for debugging
[179/484] Compiling x_attrib.cc
[180/484] Compiling x_crl.cc
[181/484] Compiling KeccakP-1600-opt64.c
[182/484] Compiling x_all.cc
[184/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[185/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[186/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[187/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[188/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[189/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[190/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[191/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[192/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[193/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[194/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[195/484] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[196/484] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[197/484] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[197/491] Compiling x509spki.cc
[198/491] Compiling x_algor.cc
[200/491] Compiling OrderedCollections OrderedDictionary.swift
[201/491] Compiling OrderedCollections OrderedSet+Codable.swift
[202/491] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[203/491] Compiling OrderedCollections OrderedSet+Descriptions.swift
[204/491] Compiling OrderedCollections OrderedSet+Diffing.swift
[205/491] Compiling OrderedCollections OrderedSet+Equatable.swift
[206/491] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[207/491] Compiling OrderedCollections OrderedSet+Hashable.swift
[208/491] Compiling OrderedCollections OrderedSet+Initializers.swift
[209/491] Compiling OrderedCollections OrderedSet+Insertions.swift
[210/491] Compiling OrderedCollections OrderedSet+Invariants.swift
[211/491] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[212/491] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[213/491] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[214/491] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[215/491] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[216/491] Compiling OrderedCollections OrderedDictionary+Codable.swift
[217/491] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[218/491] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[219/491] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[220/491] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[221/491] Compiling OrderedCollections OrderedDictionary+Elements.swift
[222/491] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[223/491] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[224/491] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[225/491] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[226/491] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[227/491] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[228/491] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[229/491] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[230/491] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[231/491] Compiling OrderedCollections OrderedDictionary+Values.swift
[231/491] Compiling x509rset.cc
[232/491] Compiling x509name.cc
[233/491] Compiling x509_vpm.cc
[234/491] Compiling x509cset.cc
[236/491] Compiling OrderedCollections _HashTable+Bucket.swift
[237/491] Compiling OrderedCollections _HashTable+BucketIterator.swift
[238/491] Compiling OrderedCollections _HashTable+Constants.swift
[239/491] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[240/491] Compiling OrderedCollections _HashTable+Testing.swift
[241/491] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[242/491] Compiling OrderedCollections _HashTable.swift
[243/491] Compiling OrderedCollections _Hashtable+Header.swift
[244/491] Compiling OrderedCollections OrderedSet+Sendable.swift
[245/491] Compiling OrderedCollections OrderedSet+SubSequence.swift
[246/491] Compiling OrderedCollections OrderedSet+Testing.swift
[247/491] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[248/491] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[249/491] Compiling OrderedCollections OrderedSet.swift
[250/491] Compiling OrderedCollections _UnsafeBitset.swift
[250/491] Compiling x509_v3.cc
[251/491] Compiling x509_vfy.cc
[252/491] Compiling x509_trs.cc
[254/491] Emitting module OrderedCollections
[255/492] Compiling x509_txt.cc
[256/492] Compiling x509_set.cc
[257/506] Wrapping AST for OrderedCollections for debugging
[258/506] Compiling x509_obj.cc
[259/506] Compiling x509_def.cc
[260/506] Compiling x509_ext.cc
[261/506] Compiling x509_lu.cc
[262/506] Compiling x509_req.cc
[263/506] Compiling x509_d2.cc
[264/506] Compiling x509.cc
[265/506] Compiling x509_cmp.cc
[267/506] Compiling Jinja Utilities.swift
[267/507] Compiling v3_skey.cc
[268/507] Compiling x509_att.cc
[269/507] Compiling v3_utl.cc
[270/507] Compiling v3_purp.cc
[271/507] Compiling v3_pmaps.cc
[272/507] Compiling v3_prn.cc
[273/507] Compiling v3_pcons.cc
[274/507] Compiling v3_ocsp.cc
[275/507] Compiling v3_ia5.cc
[276/507] Compiling v3_lib.cc
[278/507] Compiling Jinja Interpreter.swift
[279/507] Compiling Jinja Lexer.swift
[279/507] Compiling v3_ncons.cc
[280/507] Compiling v3_int.cc
[281/507] Compiling v3_info.cc
[283/507] Compiling Jinja Value.swift
[283/507] Compiling v3_enum.cc
[285/507] Compiling Jinja PropertyMembers.swift
[286/507] Compiling Jinja Template.swift
[287/507] Compiling Jinja Macro.swift
[288/507] Compiling Jinja Parser.swift
[289/507] Compiling Jinja Tests.swift
[290/507] Compiling Jinja Token.swift
[290/507] Compiling v3_extku.cc
[292/507] Emitting module Jinja
[292/507] Compiling v3_genn.cc
[294/507] Compiling Jinja AST.swift
[295/507] Compiling Jinja Error.swift
[296/507] Compiling Jinja Filters.swift
[297/507] Compiling Jinja Globals.swift
[298/508] Compiling v3_crld.cc
[299/508] Wrapping AST for Jinja for debugging
[300/508] Compiling v3_cpols.cc
[301/508] Compiling v3_conf.cc
[302/508] Compiling v3_bcons.cc
[303/508] Compiling v3_bitst.cc
[304/508] Compiling v3_alt.cc
[305/508] Compiling v3_akeya.cc
[306/508] Compiling t_x509a.cc
[307/508] Compiling v3_akey.cc
[308/508] Compiling t_x509.cc
[309/508] Compiling t_req.cc
[310/508] Compiling t_crl.cc
[311/508] Compiling rsa_pss.cc
[312/508] Compiling i2d_pr.cc
[313/508] Compiling name_print.cc
[314/508] Compiling policy.cc
[315/508] Compiling by_dir.cc
[316/508] Compiling by_file.cc
[317/508] Compiling algorithm.cc
[318/508] Compiling asn1_gen.cc
[319/508] Compiling a_sign.cc
[320/508] Compiling a_digest.cc
[321/508] Compiling a_verify.cc
[322/508] Compiling voprf.cc
[323/508] Compiling thread_win.cc
[324/508] Compiling trust_token.cc
[325/508] Compiling pmbtoken.cc
[326/508] Compiling thread.cc
[327/508] Compiling thread_none.cc
[328/508] Compiling thread_pthread.cc
[329/508] Compiling stack.cc
[330/508] Compiling siphash.cc
[331/508] Compiling spake2plus.cc
[332/508] Compiling sha512.cc
[333/508] Compiling slhdsa.cc
[334/508] Compiling sha256.cc
[335/508] Compiling rsa_print.cc
[336/508] Compiling sha1.cc
[337/508] Compiling rsa_extra.cc
[338/508] Compiling rc4.cc
[339/508] Compiling rsa_crypt.cc
[340/508] Compiling refcount.cc
[341/508] Compiling urandom.cc
[342/508] Compiling windows.cc
[343/508] Compiling trusty.cc
[344/508] Compiling rand.cc
[345/508] Compiling rsa_asn1.cc
[346/508] Compiling ios.cc
[347/508] Compiling passive.cc
[348/508] Compiling getentropy.cc
[349/508] Compiling poly1305_arm_asm.S
[350/508] Compiling forkunsafe.cc
[351/508] Compiling fork_detect.cc
[352/508] Compiling deterministic.cc
[353/508] Compiling poly1305_vec.cc
[354/508] Compiling pool.cc
[355/508] Compiling poly1305.cc
[356/508] Compiling poly1305_arm.cc
[357/508] Compiling pkcs8_x509.cc
[358/508] Compiling p5_pbev2.cc
[359/508] Compiling pkcs7.cc
[360/508] Compiling pkcs8.cc
[361/508] Compiling pkcs7_x509.cc
[362/508] Compiling pem_xaux.cc
[363/508] Compiling pem_x509.cc
[364/508] Compiling pem_pkey.cc
[365/508] Compiling pem_info.cc
[366/508] Compiling pem_pk8.cc
[367/508] Compiling pem_oth.cc
[368/508] Compiling pem_lib.cc
[369/508] Compiling yyjson.c
[370/508] Compiling obj_xref.cc
[371/508] Compiling mldsa.cc
[372/508] Compiling pem_all.cc
[373/508] Compiling mlkem.cc
[374/508] Compiling mem.cc
[375/508] Compiling poly_rq_mul.S
[376/508] Compiling obj.cc
[377/508] Compiling fips_shared_support.cc
[378/508] Compiling md5.cc
[379/508] Compiling lhash.cc
[380/508] Compiling hrss.cc
[381/508] Compiling md4.cc
[382/508] Compiling fuzzer_mode.cc
[382/508] Compiling ex_data.cc
[384/508] Compiling kyber.cc
[385/508] Compiling hpke.cc
[386/508] Compiling scrypt.cc
[387/508] Compiling sign.cc
[388/508] Compiling print.cc
[389/508] Compiling pbkdf.cc
[390/508] Compiling p_x25519.cc
[391/508] Compiling p_rsa_asn1.cc
[392/508] Compiling p_x25519_asn1.cc
[393/508] Compiling p_hkdf.cc
[394/508] Compiling p_rsa.cc
[395/508] Compiling p_ed25519_asn1.cc
[396/508] Compiling p_ed25519.cc
[397/508] Compiling p_dh_asn1.cc
[398/508] Compiling p_ec.cc
[399/508] Compiling p_ec_asn1.cc
[400/508] Compiling p_dsa_asn1.cc
[400/508] Compiling evp_ctx.cc
[400/508] Compiling p_dh.cc
[403/508] Compiling evp.cc
[404/508] Compiling err.cc
[405/508] Compiling evp_asn1.cc
[406/508] Compiling engine.cc
[407/508] Compiling ecdsa_p1363.cc
[408/508] Compiling ecdh.cc
[409/508] Compiling ecdsa_asn1.cc
[410/508] Compiling ec_derive.cc
[411/508] Compiling bcm.cc
[412/508] Compiling dsa.cc
[413/508] Compiling hash_to_curve.cc
[414/508] Compiling dsa_asn1.cc
[415/508] Compiling ec_asn1.cc
[416/508] Compiling x25519-asm-arm.S
[417/508] Compiling digest_extra.cc
[418/508] Compiling params.cc
[419/508] Compiling curve25519_64_adx.cc
[420/508] Compiling des.cc
[421/508] Compiling dh_asn1.cc
[422/508] Compiling spake25519.cc
[423/508] Compiling crypto.cc
[424/508] Compiling cpu_intel.cc
[425/508] Compiling cpu_arm_linux.cc
[426/508] Compiling cpu_arm_freebsd.cc
[427/508] Compiling cpu_aarch64_fuchsia.cc
[428/508] Compiling curve25519.cc
[429/508] Compiling cpu_aarch64_linux.cc
[430/508] Compiling cpu_aarch64_apple.cc
[431/508] Compiling conf.cc
[432/508] Compiling tls_cbc.cc
[433/508] Compiling e_tls.cc
[434/508] Compiling e_rc4.cc
[435/508] Compiling get_cipher.cc
[436/508] Compiling e_null.cc
[437/508] Compiling cms.cc
[438/508] Compiling e_rc2.cc
[439/508] Compiling e_des.cc
[440/508] Compiling e_chacha20poly1305.cc
[441/508] Compiling e_aeseax.cc
[442/508] Compiling e_aesctrhmac.cc
[443/508] Compiling derive_key.cc
[444/508] Compiling e_aesgcmsiv.cc
[445/508] Compiling chacha.cc
[446/508] Compiling cbs.cc
[447/508] Compiling buf.cc
[448/508] Compiling ber.cc
[449/508] Compiling unicode.cc
[450/508] Compiling sqrt.cc
[451/508] Compiling exponentiation.cc
[452/508] Compiling cbb.cc
[453/508] Compiling asn1_compat.cc
[454/508] Compiling div.cc
[455/508] Compiling blake2.cc
[456/508] Compiling printf.cc
[457/508] Compiling convert.cc
[458/508] Compiling pair.cc
[459/508] Compiling bn_asn1.cc
[460/508] Compiling file.cc
[461/508] Compiling hexdump.cc
[462/508] Compiling fd.cc
[463/508] Compiling errno.cc
[464/508] Compiling bio_mem.cc
[465/508] Compiling bio.cc
[466/508] Compiling base64.cc
[467/508] Compiling tasn_typ.cc
[468/508] Compiling tasn_enc.cc
[469/508] Compiling tasn_fre.cc
[470/508] Compiling tasn_new.cc
[471/508] Compiling tasn_utl.cc
[472/508] Compiling posix_time.cc
[473/508] Compiling f_int.cc
[474/508] Compiling f_string.cc
[475/508] Compiling asn1_par.cc
[476/508] Compiling asn_pack.cc
[477/508] Compiling tasn_dec.cc
[478/508] Compiling asn1_lib.cc
[479/508] Compiling a_time.cc
[480/508] Compiling a_utctm.cc
[481/508] Compiling a_strex.cc
[482/508] Compiling a_octet.cc
[483/508] Compiling a_type.cc
[484/508] Compiling a_object.cc
[485/508] Write sources
[488/508] Compiling a_strnid.cc
[489/510] Compiling a_mbstr.cc
[490/510] Compiling a_int.cc
[491/510] Compiling a_dup.cc
[492/510] Compiling a_d2i_fp.cc
[493/510] Compiling a_i2d_fp.cc
[494/510] Compiling a_gentm.cc
[496/518] Compiling CryptoBoringWrapper RandomBytes.swift
[497/518] Emitting module CryptoBoringWrapper
[498/518] Emitting module ArgumentParserToolInfo
[499/518] Compiling ArgumentParserToolInfo ToolInfo.swift
[500/519] Compiling CryptoBoringWrapper FiniteFieldArithmeticContext.swift
[502/519] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[503/519] Compiling CryptoBoringWrapper EllipticCurve.swift
[503/519] Wrapping AST for ArgumentParserToolInfo for debugging
[505/519] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[506/565] Compiling CryptoBoringWrapper ArbitraryPrecisionInteger.swift
[507/565] Compiling CryptoBoringWrapper EllipticCurvePoint.swift
[508/566] Wrapping AST for CryptoBoringWrapper for debugging
[510/649] Compiling Crypto ArraySliceBigint.swift
[511/649] Compiling Crypto GeneralizedTime.swift
[512/649] Compiling Crypto ObjectIdentifier.swift
[513/649] Compiling Crypto ECDSASignature.swift
[514/649] Compiling Crypto PEMDocument.swift
[515/649] Compiling Crypto PKCS8PrivateKey.swift
[516/655] Compiling Crypto HPKE-LabeledExtract.swift
[517/655] Compiling Crypto HPKE-Utils.swift
[518/655] Compiling Crypto DHKEM.swift
[519/655] Compiling Crypto HPKE-KEM-Curve25519.swift
[520/655] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[521/655] Compiling Crypto HPKE-KEM.swift
[522/655] Compiling Crypto HPKE-Errors.swift
[523/655] Compiling Crypto HPKE.swift
[524/655] Compiling Crypto HPKE-Context.swift
[525/655] Compiling Crypto HPKE-KeySchedule.swift
[526/655] Compiling Crypto HPKE-Modes.swift
[527/655] Compiling Crypto Insecure.swift
[528/666] Emitting module Crypto
[529/666] Compiling Crypto HPKE-AEAD.swift
[530/666] Compiling Crypto HPKE-Ciphersuite.swift
[531/666] Compiling Crypto HPKE-KDF.swift
[532/666] Compiling Crypto HPKE-KexKeyDerivation.swift
[535/666] Compiling ArgumentParser Tree.swift
[536/666] Compiling ArgumentParser CodingKeyValidator.swift
[537/666] Compiling ArgumentParser NonsenseFlagsValidator.swift
[538/666] Compiling ArgumentParser ParsableArgumentsValidation.swift
[539/666] Compiling ArgumentParser PositionalArgumentsValidator.swift
[540/666] Compiling ArgumentParser UniqueNamesValidator.swift
[541/666] Emitting module ArgumentParser
[542/666] Compiling Crypto AES-GCM.swift
[543/666] Compiling Crypto AES-GCM_boring.swift
[544/666] Compiling Crypto ChaChaPoly_boring.swift
[545/666] Compiling Crypto ChaChaPoly.swift
[546/666] Compiling Crypto Cipher.swift
[547/666] Compiling Crypto Nonces.swift
[548/666] Compiling Crypto ASN1.swift
[552/666] Compiling Crypto ASN1Null.swift
[553/666] Compiling Crypto ASN1OctetString.swift
[554/666] Compiling Crypto ASN1Strings.swift
[555/666] Compiling Crypto CryptoKitErrors.swift
[556/666] Compiling Crypto Digest_boring.swift
[557/666] Compiling Crypto Digest.swift
[558/666] Compiling Crypto Digests.swift
[559/666] Compiling Crypto HashFunctions.swift
[560/666] Compiling Crypto HashFunctions_SHA2.swift
[561/666] Compiling Crypto HashFunctions_SHA3.swift
[562/666] Compiling Crypto Digest_xkcp.swift
[574/666] Compiling Crypto ASN1Any.swift
[575/666] Compiling Crypto ASN1BitString.swift
[576/666] Compiling Crypto ASN1Boolean.swift
[577/666] Compiling Crypto ASN1Identifier.swift
[578/666] Compiling Crypto ASN1Integer.swift
[599/667] Compiling Crypto MLDSA.swift
[600/667] Compiling Crypto Signature.swift
[601/667] Compiling Crypto CryptoKitErrors_boring.swift
[602/667] Compiling Crypto Optional+withUnsafeBytes_boring.swift
[603/667] Compiling Crypto RNG_boring.swift
[604/667] Compiling Crypto SafeCompare_boring.swift
[605/667] Compiling Crypto Zeroization_boring.swift
[606/667] Compiling Crypto PrettyBytes.swift
[607/667] Compiling Crypto SafeCompare.swift
[608/667] Compiling Crypto SecureBytes.swift
[609/667] Compiling Crypto Zeroization.swift
[622/667] Wrapping AST for ArgumentParser for debugging
[624/667] Compiling Crypto HKDF.swift
[625/667] Compiling Crypto AESWrap.swift
[626/667] Compiling Crypto AESWrap_boring.swift
[627/667] Compiling Crypto Ed25519_boring.swift
[628/667] Compiling Crypto NISTCurvesKeys_boring.swift
[629/667] Compiling Crypto X25519Keys_boring.swift
[630/667] Compiling Crypto Curve25519.swift
[631/667] Compiling Crypto Ed25519Keys.swift
[632/667] Compiling Crypto NISTCurvesKeys.swift
[633/667] Compiling Crypto X25519Keys.swift
[634/667] Compiling Crypto SymmetricKeys.swift
[638/667] Compiling Crypto XWing_boring.swift
[639/667] Compiling Crypto KEM-Errors.swift
[640/667] Compiling Crypto KEM.swift
[641/667] Compiling Crypto MLKEM.swift
[642/667] Compiling Crypto XWing.swift
[643/667] Compiling Crypto ECDH_boring.swift
[644/667] Compiling Crypto DH.swift
[645/667] Compiling Crypto ECDH.swift
[646/667] Compiling Crypto ANSIx963.swift
[647/667] Compiling Crypto HMAC.swift
[648/667] Compiling Crypto MACFunctions.swift
[649/667] Compiling Crypto MessageAuthenticationCode.swift
[650/667] Compiling Crypto AES.swift
[651/667] Compiling Crypto ECDSASignature_boring.swift
[652/667] Compiling Crypto ECDSA_boring.swift
[653/667] Compiling Crypto EdDSA_boring.swift
[654/667] Compiling Crypto MLDSA_boring.swift
[655/667] Compiling Crypto MLDSA_wrapper.swift
[656/667] Compiling Crypto ECDSA.swift
[657/667] Compiling Crypto Ed25519.swift
[658/668] Wrapping AST for Crypto for debugging
[660/676] Compiling Hub resource_bundle_accessor.swift
[661/676] Compiling Hub YYJSONParser.swift
[662/676] Compiling Hub Hub.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
[663/676] Compiling Hub HubApi.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:50:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
48 | /// `requests` automatically parses Link headers into `response.links`,
49 | /// we implement similar functionality here.
50 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
51 | func getLinkURL(for rel: String) -> String? {
52 | guard let linkHeader = allHeaderFields["Link"] as? String else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:212:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | /// - Returns: A tuple containing the response data and HTTP response
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | var request = URLRequest(url: url)
214 | if let hfToken, !hfToken.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:249:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 | /// - Returns: The HTTP response containing headers and status code
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | var request = URLRequest(url: url)
251 | request.httpMethod = "HEAD"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:796:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 | /// https://github.com/huggingface/huggingface_hub/blob/b698915d6b582c72806ac3e91c43bfd8dde35856/src/huggingface_hub/utils/_xet.py#L29
795 | private func parseXetFileDataFromResponse(
796 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | endpoint: String? = nil
798 | ) -> XetFileData? {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:979:102: error: cannot find type 'Progress' in scope
977 | /// - Returns: URL to the local repository directory
978 | /// - Throws: HubClientError if the download fails
979 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
980 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
981 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:983:106: error: cannot find type 'Progress' in scope
981 | }
982 |
983 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws
| `- error: cannot find type 'Progress' in scope
984 | -> URL
985 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:989:94: error: cannot find type 'Progress' in scope
987 | }
988 |
989 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
990 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
991 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:993:98: error: cannot find type 'Progress' in scope
991 | }
992 |
993 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
994 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
995 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:998:102: error: cannot find type 'Progress' in scope
996 |
997 | /// Overloads exposing speed via (Progress, Double?) where Double is bytes/sec
998 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
999 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
1000 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1002:106: error: cannot find type 'Progress' in scope
1000 | }
1001 |
1002 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1003 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: globs, progressHandler: progressHandler)
1004 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1006:94: error: cannot find type 'Progress' in scope
1004 | }
1005 |
1006 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1007 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
1008 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1010:98: error: cannot find type 'Progress' in scope
1008 | }
1009 |
1010 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1011 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
1012 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1082:49: error: cannot find type 'URLSessionTaskDelegate' in scope
1080 | /// Only allow relative redirects and reject others
1081 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
1083 | func urlSession(
1084 | _ session: URLSession,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1087:29: error: cannot find type 'URLRequest' in scope
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
1088 | completionHandler: @escaping (URLRequest?) -> Void
1089 | ) {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1088:39: error: cannot find type 'URLRequest' in scope
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1084:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
1083 | func urlSession(
1084 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1085:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1083 | func urlSession(
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1086:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1134:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1132 | /// to avoid resource exhaustion when running multiple tests or creating many instances.
1133 | private actor RedirectSessionActor {
1134 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1135 |
1136 | func get() -> URLSession {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1136:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1134 | private var urlSession: URLSession?
1135 |
1136 | func get() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1137 | if let urlSession = urlSession {
1138 | return urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:213:23: error: cannot find 'URLRequest' in scope
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
213 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
214 | if let hfToken, !hfToken.isEmpty {
215 | request.setValue("Bearer \(hfToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:219:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
217 |
218 | do {
219 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | guard let httpResponse = response as? HTTPURLResponse else {
221 | throw Hub.HubClientError.unexpectedError
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:250:23: error: cannot find 'URLRequest' in scope
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
250 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
251 | request.httpMethod = "HEAD"
252 | if let hfToken, !hfToken.isEmpty {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:259:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
257 | // Use shared session with redirect handling to avoid creating multiple URLSession instances
258 | let session = await Self.redirectSession.get()
259 | let (_, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
260 | guard let response = response as? HTTPURLResponse else { throw Hub.HubClientError.unexpectedError }
261 |
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:664:24: error: cannot find 'Progress' in scope
662 |
663 | let filenames = try await getFilenames(from: repo, revision: revision, matching: globs)
664 | let progress = Progress(totalUnitCount: Int64(filenames.count))
| `- error: cannot find 'Progress' in scope
665 | for filename in filenames {
666 | let fileProgress = Progress(totalUnitCount: 100, parent: progress, pendingUnitCount: 1)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:666:32: error: cannot find 'Progress' in scope
664 | let progress = Progress(totalUnitCount: Int64(filenames.count))
665 | for filename in filenames {
666 | let fileProgress = Progress(totalUnitCount: 100, parent: progress, pendingUnitCount: 1)
| `- error: cannot find 'Progress' in scope
667 | let downloader = HubFileDownloader(
668 | hub: self,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:701:44: error: cannot infer contextual base in reference to member 'throughputKey'
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
| `- error: cannot infer contextual base in reference to member 'throughputKey'
702 | progressHandler(progress, speed)
703 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:111: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:784:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
782 |
783 | return FileMetadata(
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:786:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:786:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:789:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
789 | size: Int(response.value(forHTTPHeaderField: HFHttpHeaders.linkedSize) ?? response.value(forHTTPHeaderField: HFHttpHeaders.contentLength) ?? ""),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
790 | xetFileData: parseXetFileDataFromResponse(response: response, endpoint: endpoint)
791 | )
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:789:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
789 | size: Int(response.value(forHTTPHeaderField: HFHttpHeaders.linkedSize) ?? response.value(forHTTPHeaderField: HFHttpHeaders.contentLength) ?? ""),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
790 | xetFileData: parseXetFileDataFromResponse(response: response, endpoint: endpoint)
791 | )
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:803:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
801 | }
802 |
803 | guard let fileHash = response.allHeaderFields[HFHttpHeaders.xetHash] as? String else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
804 | return nil
805 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:808:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'getLinkURL'
806 |
807 | guard
808 | var refreshRoute = response.getLinkURL(for: HFHttpHeaders.linkXetAuthKey)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'getLinkURL'
809 | ?? response.allHeaderFields[HFHttpHeaders.xetRefreshRoute] as? String
810 | else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:809:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
807 | guard
808 | var refreshRoute = response.getLinkURL(for: HFHttpHeaders.linkXetAuthKey)
809 | ?? response.allHeaderFields[HFHttpHeaders.xetRefreshRoute] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
810 | else {
811 | return nil
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1091:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
1091 | if (300...399).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1092 | // Get the Location header
1093 | if let locationString = response.value(forHTTPHeaderField: "Location"),
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1093:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1091 | if (300...399).contains(response.statusCode) {
1092 | // Get the Location header
1093 | if let locationString = response.value(forHTTPHeaderField: "Location"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1094 | let locationUrl = URL(string: locationString)
1095 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1099:47: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1097 | if locationUrl.host == nil {
1098 | // For relative redirects, construct the new URL using the original request's base
1099 | if let originalUrl = task.originalRequest?.url,
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1100 | var components = URLComponents(url: originalUrl, resolvingAgainstBaseURL: true)
1101 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1108:46: error: cannot find 'URLRequest' in scope
1106 | // Create new request with the resolved URL
1107 | if let resolvedUrl = components.url {
1108 | var newRequest = URLRequest(url: resolvedUrl)
| `- error: cannot find 'URLRequest' in scope
1109 | // Copy headers from original request
1110 | if let headers = task.originalRequest?.allHTTPHeaderFields {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1110:51: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1108 | var newRequest = URLRequest(url: resolvedUrl)
1109 | // Copy headers from original request
1110 | if let headers = task.originalRequest?.allHTTPHeaderFields {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1111 | for (key, value) in headers {
1112 | newRequest.setValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1125:27: error: 'nil' requires a contextual type
1123 |
1124 | // For all other cases (non-redirects or absolute redirects), prevent redirect
1125 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
1126 | }
1127 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1144 | self.urlSession = session
1145 | return session
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:50: error: cannot infer contextual base in reference to member 'default'
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
1144 | self.urlSession = session
1145 | return session
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:102: error: 'nil' requires a contextual type
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
1144 | self.urlSession = session
1145 | return session
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[664/676] Compiling Hub BinaryDistinct.swift
[665/676] Compiling Hub Config.swift
[666/676] Emitting module Hub
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:52:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | private let sessionConfig: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let session: SessionActor = .init()
54 | private let task: TaskActor = .init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:239:18: error: cannot find type 'URLRequest' in scope
237 | /// `URLError` if the download fails after all retries are exhausted
238 | private func httpGet(
239 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
240 | tempFile: FileHandle,
241 | numRetries: Int
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:399:23: error: cannot find type 'URLSessionDownloadDelegate' in scope
397 | }
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
401 | Task {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:50: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:52: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:512:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
510 |
511 | actor SessionActor {
512 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
513 |
514 | func set(_ urlSession: URLSession?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:514:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | private var urlSession: URLSession?
513 |
514 | func set(_ urlSession: URLSession?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | self.urlSession = urlSession
516 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:518:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func get() -> URLSession? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | urlSession
520 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:50:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
48 | /// `requests` automatically parses Link headers into `response.links`,
49 | /// we implement similar functionality here.
50 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
51 | func getLinkURL(for rel: String) -> String? {
52 | guard let linkHeader = allHeaderFields["Link"] as? String else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:212:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | /// - Returns: A tuple containing the response data and HTTP response
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | var request = URLRequest(url: url)
214 | if let hfToken, !hfToken.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:249:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 | /// - Returns: The HTTP response containing headers and status code
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | var request = URLRequest(url: url)
251 | request.httpMethod = "HEAD"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:796:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 | /// https://github.com/huggingface/huggingface_hub/blob/b698915d6b582c72806ac3e91c43bfd8dde35856/src/huggingface_hub/utils/_xet.py#L29
795 | private func parseXetFileDataFromResponse(
796 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | endpoint: String? = nil
798 | ) -> XetFileData? {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:979:102: error: cannot find type 'Progress' in scope
977 | /// - Returns: URL to the local repository directory
978 | /// - Throws: HubClientError if the download fails
979 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
980 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
981 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:983:106: error: cannot find type 'Progress' in scope
981 | }
982 |
983 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws
| `- error: cannot find type 'Progress' in scope
984 | -> URL
985 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:989:94: error: cannot find type 'Progress' in scope
987 | }
988 |
989 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
990 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
991 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:993:98: error: cannot find type 'Progress' in scope
991 | }
992 |
993 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
994 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
995 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:998:102: error: cannot find type 'Progress' in scope
996 |
997 | /// Overloads exposing speed via (Progress, Double?) where Double is bytes/sec
998 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
999 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
1000 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1002:106: error: cannot find type 'Progress' in scope
1000 | }
1001 |
1002 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1003 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: globs, progressHandler: progressHandler)
1004 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1006:94: error: cannot find type 'Progress' in scope
1004 | }
1005 |
1006 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1007 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
1008 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1010:98: error: cannot find type 'Progress' in scope
1008 | }
1009 |
1010 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1011 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
1012 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1082:49: error: cannot find type 'URLSessionTaskDelegate' in scope
1080 | /// Only allow relative redirects and reject others
1081 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
1083 | func urlSession(
1084 | _ session: URLSession,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1087:29: error: cannot find type 'URLRequest' in scope
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
1088 | completionHandler: @escaping (URLRequest?) -> Void
1089 | ) {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1088:39: error: cannot find type 'URLRequest' in scope
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1084:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
1083 | func urlSession(
1084 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1085:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1083 | func urlSession(
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1086:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1134:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1132 | /// to avoid resource exhaustion when running multiple tests or creating many instances.
1133 | private actor RedirectSessionActor {
1134 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1135 |
1136 | func get() -> URLSession {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1136:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1134 | private var urlSession: URLSession?
1135 |
1136 | func get() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1137 | if let urlSession = urlSession {
1138 | return urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[667/676] Compiling Hub Downloader.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:52:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | private let sessionConfig: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let session: SessionActor = .init()
54 | private let task: TaskActor = .init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:239:18: error: cannot find type 'URLRequest' in scope
237 | /// `URLError` if the download fails after all retries are exhausted
238 | private func httpGet(
239 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
240 | tempFile: FileHandle,
241 | numRetries: Int
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:399:23: error: cannot find type 'URLSessionDownloadDelegate' in scope
397 | }
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
401 | Task {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:50: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:52: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:512:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
510 |
511 | actor SessionActor {
512 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
513 |
514 | func set(_ urlSession: URLSession?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:514:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | private var urlSession: URLSession?
513 |
514 | func set(_ urlSession: URLSession?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | self.urlSession = urlSession
516 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:518:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func get() -> URLSession? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | urlSession
520 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:76:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
74 | let sessionIdentifier = "swift-transformers.hub.downloader"
75 |
76 | var config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 | #if !canImport(FoundationNetworking)
78 | if inBackground {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:79:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'background'
77 | #if !canImport(FoundationNetworking)
78 | if inBackground {
79 | config = URLSessionConfiguration.background(withIdentifier: sessionIdentifier)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'background'
80 | config.isDiscretionary = false
81 | config.sessionSendsLaunchEvents = true
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:110:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | await downloadResumeState.setExpectedSize(expectedSize)
109 | let resumeSize = Self.incompleteFileSize(at: incompleteDestination)
110 | await session.set(URLSession(configuration: sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
111 | await setUpDownload(
112 | from: url,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:110:99: error: 'nil' requires a contextual type
108 | await downloadResumeState.setExpectedSize(expectedSize)
109 | let resumeSize = Self.incompleteFileSize(at: incompleteDestination)
110 | await session.set(URLSession(configuration: sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'nil' requires a contextual type
111 | await setUpDownload(
112 | from: url,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:143:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'allTasks'
141 |
142 | #if !canImport(FoundationNetworking)
143 | guard let tasks = await session.get()?.allTasks else {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'allTasks'
144 | return
145 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:167:35: error: cannot find 'URLRequest' in scope
165 | Task {
166 | do {
167 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
168 |
169 | // Use headers from argument else create an empty header dictionary
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:282:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
280 | #else
281 | // Start the download and get the byte stream
282 | let (asyncBytes, response) = try await session.bytes(for: newRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
283 |
284 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:361:36: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
359 | try await Task.sleep(nanoseconds: 1_000_000_000)
360 |
361 | await self.session.set(URLSession(configuration: self.sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
362 |
363 | try await httpGet(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:361:113: error: 'nil' requires a contextual type
359 | try await Task.sleep(nanoseconds: 1_000_000_000)
360 |
361 | await self.session.set(URLSession(configuration: self.sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'nil' requires a contextual type
362 |
363 | try await httpGet(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:380:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
378 |
379 | func cancel() async {
380 | await session.get()?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
381 | await task.get()?.cancel()
382 | await broadcaster.broadcast(state: .failed(URLError(.cancelled)))
BUILD FAILURE 6.2 wasm