The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build GoogleScholarSwift, reference 1.3.1 (4e53fd), with Swift 6.0 for Linux on 5 Nov 2024 17:57:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ezefranca/GoogleScholarSwift.git
Reference: 1.3.1
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/ezefranca/GoogleScholarSwift
 * tag               1.3.1      -> FETCH_HEAD
HEAD is now at 4e53fd6 added NSCache
Cloned https://github.com/ezefranca/GoogleScholarSwift.git
Revision (git rev-parse @):
4e53fd6bd8ebe3cef86d555ea99cd7d652106582
SUCCESS checkout https://github.com/ezefranca/GoogleScholarSwift.git at 1.3.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ezefranca/GoogleScholarSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/scinfu/SwiftSoup.git
Fetching https://github.com/apple/swift-docc-plugin.git
[1/3197] Fetching swiftsoup
[609/5235] Fetching swiftsoup, swift-docc-plugin
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.40s)
Fetched https://github.com/apple/swift-docc-plugin.git from cache (0.40s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.6 (2.07s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.3 (0.50s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.37s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.54s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.3
warning: 'swiftsoup': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoWatchOS.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Info.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfotvOS.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.plist
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/57] Compiling SwiftSoup SerializationException.swift
[7/57] Compiling SwiftSoup SimpleDictionary.swift
[8/57] Compiling SwiftSoup StreamReader.swift
[9/57] Compiling SwiftSoup String.swift
[10/57] Compiling SwiftSoup StringBuilder.swift
[11/57] Compiling SwiftSoup StringUtil.swift
[12/57] Compiling SwiftSoup StructuralEvaluator.swift
[13/57] Compiling SwiftSoup Collector.swift
[14/57] Compiling SwiftSoup CombiningEvaluator.swift
[15/57] Compiling SwiftSoup Comment.swift
[16/57] Compiling SwiftSoup Connection.swift
[17/57] Compiling SwiftSoup CssSelector.swift
[18/57] Compiling SwiftSoup DataNode.swift
[19/57] Compiling SwiftSoup DataUtil.swift
[20/57] Compiling SwiftSoup Document.swift
[21/64] Compiling SwiftSoup HtmlTreeBuilder.swift
[22/64] Compiling SwiftSoup HtmlTreeBuilderState.swift
[23/64] Compiling SwiftSoup HttpStatusException.swift
[24/64] Compiling SwiftSoup Mutex.swift
[25/64] Compiling SwiftSoup Node.swift
[26/64] Compiling SwiftSoup NodeTraversor.swift
[27/64] Compiling SwiftSoup NodeVisitor.swift
[28/64] Compiling SwiftSoup DocumentType.swift
[29/64] Compiling SwiftSoup Element.swift
[30/64] Compiling SwiftSoup Elements.swift
[31/64] Compiling SwiftSoup Entities.swift
[32/64] Compiling SwiftSoup Evaluator.swift
[33/64] Compiling SwiftSoup Exception.swift
[34/64] Compiling SwiftSoup FormElement.swift
[35/64] Compiling SwiftSoup OrderedSet.swift
[36/64] Compiling SwiftSoup ParseError.swift
[37/64] Compiling SwiftSoup ParseErrorList.swift
[38/64] Compiling SwiftSoup ParseSettings.swift
[39/64] Compiling SwiftSoup Parser.swift
[40/64] Compiling SwiftSoup Pattern.swift
[41/64] Compiling SwiftSoup QueryParser.swift
[42/64] Compiling SwiftSoup SwiftSoup.swift
[43/64] Compiling SwiftSoup Tag.swift
[44/64] Compiling SwiftSoup TextNode.swift
[45/64] Compiling SwiftSoup Token.swift
[46/64] Compiling SwiftSoup TokenQueue.swift
[47/64] Compiling SwiftSoup Tokeniser.swift
[48/64] Compiling SwiftSoup TokeniserState.swift
[49/64] Emitting module SwiftSoup
[50/64] Compiling SwiftSoup ArrayExt.swift
[51/64] Compiling SwiftSoup Attribute.swift
[52/64] Compiling SwiftSoup Attributes.swift
[53/64] Compiling SwiftSoup BinarySearch.swift
[54/64] Compiling SwiftSoup BooleanAttribute.swift
[55/64] Compiling SwiftSoup CharacterExt.swift
[56/64] Compiling SwiftSoup CharacterReader.swift
[57/64] Compiling SwiftSoup Cleaner.swift
[58/64] Compiling SwiftSoup TreeBuilder.swift
[59/64] Compiling SwiftSoup UnfairLock.swift
[60/64] Compiling SwiftSoup UnicodeScalar.swift
[61/64] Compiling SwiftSoup Validate.swift
[62/64] Compiling SwiftSoup Whitelist.swift
[63/64] Compiling SwiftSoup XmlDeclaration.swift
[64/64] Compiling SwiftSoup XmlTreeBuilder.swift
[66/76] Compiling GoogleScholarSwift GoogleScholarID.swift
[67/77] Compiling GoogleScholarSwift GoogleScholarCacheConfig.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:12:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
 5 | public struct GoogleScholarCacheConfig {
   |               `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
 6 |     public let publicationCountLimit: Int
 7 |     public let publicationTotalCostLimit: Int
   :
10 |
11 |     /// Default cache configuration.
12 |     public static let `default` = GoogleScholarCacheConfig(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |         publicationCountLimit: 100,
14 |         publicationTotalCostLimit: 1024 * 1024 * 10,
[68/77] Compiling GoogleScholarSwift AuthorMetrics.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[69/77] Emitting module GoogleScholarSwift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cookies' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 | /// A class responsible for fetching data from Google Scholar.
  5 | public class GoogleScholarFetcher {
  6 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let publicationCache = NSCache<NSString, NSArray>()
  8 |     private let articleCache = NSCache<NSString, Article>()
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     ///   - session: A custom URL session. Defaults to `.shared`.
 16 |     ///   - cacheConfig: The configuration for the cache. Defaults to `.default`.
 17 |     public init(session: URLSession = .shared, cacheConfig: GoogleScholarCacheConfig = .default) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.session = session
 19 |         self.configureCache(with: cacheConfig)
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:17:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 15 |     ///   - session: A custom URL session. Defaults to `.shared`.
 16 |     ///   - cacheConfig: The configuration for the cache. Defaults to `.default`.
 17 |     public init(session: URLSession = .shared, cacheConfig: GoogleScholarCacheConfig = .default) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         self.session = session
 19 |         self.configureCache(with: cacheConfig)
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:12:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
 5 | public struct GoogleScholarCacheConfig {
   |               `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
 6 |     public let publicationCountLimit: Int
 7 |     public let publicationTotalCostLimit: Int
   :
10 |
11 |     /// Default cache configuration.
12 |     public static let `default` = GoogleScholarCacheConfig(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |         publicationCountLimit: 100,
14 |         publicationTotalCostLimit: 1024 * 1024 * 10,
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:241:53: error: cannot find type 'URLRequest' in scope
239 |     /// - Parameter url: The `URL` for the request.
240 |     /// - Returns: A configured `URLRequest`.
241 |     private func configureRequest(with url: URL) -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
242 |         var request = URLRequest(url: url)
243 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:375:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
373 |     ///
374 |     /// - Parameter response: The `HTTPURLResponse` from which to extract cookies.
375 |     private func updateCookies(from response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |         if let headerFields = response.allHeaderFields as? [String: String],
377 |            let url = response.url {
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:388:49: error: cannot find type 'URLRequest' in scope
386 |     ///
387 |     /// - Parameter request: The `URLRequest` to which cookies will be added.
388 |     private func applyCookies(to request: inout URLRequest) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
389 |         let cookieString = Constants.cookies.map { "\($0.key)=\($0.value)" }.joined(separator: "; ")
390 |         request.addValue(cookieString, forHTTPHeaderField: "Cookie")
[70/77] Compiling GoogleScholarSwift Author.swift
[71/77] Compiling GoogleScholarSwift Article.swift
[72/77] Compiling GoogleScholarSwift ArticleLink.swift
[73/77] Compiling GoogleScholarSwift Publication.swift
[74/77] Compiling GoogleScholarSwift Constants.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cookies' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
[75/77] Compiling GoogleScholarSwift FetchQuantity.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cookies' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
[76/77] Compiling GoogleScholarSwift SortBy.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 | /// A class responsible for fetching data from Google Scholar.
  5 | public class GoogleScholarFetcher {
  6 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let publicationCache = NSCache<NSString, NSArray>()
  8 |     private let articleCache = NSCache<NSString, Article>()
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     ///   - session: A custom URL session. Defaults to `.shared`.
 16 |     ///   - cacheConfig: The configuration for the cache. Defaults to `.default`.
 17 |     public init(session: URLSession = .shared, cacheConfig: GoogleScholarCacheConfig = .default) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.session = session
 19 |         self.configureCache(with: cacheConfig)
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:17:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 15 |     ///   - session: A custom URL session. Defaults to `.shared`.
 16 |     ///   - cacheConfig: The configuration for the cache. Defaults to `.default`.
 17 |     public init(session: URLSession = .shared, cacheConfig: GoogleScholarCacheConfig = .default) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         self.session = session
 19 |         self.configureCache(with: cacheConfig)
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:12:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
 5 | public struct GoogleScholarCacheConfig {
   |               `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
 6 |     public let publicationCountLimit: Int
 7 |     public let publicationTotalCostLimit: Int
   :
10 |
11 |     /// Default cache configuration.
12 |     public static let `default` = GoogleScholarCacheConfig(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |         publicationCountLimit: 100,
14 |         publicationTotalCostLimit: 1024 * 1024 * 10,
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:241:53: error: cannot find type 'URLRequest' in scope
239 |     /// - Parameter url: The `URL` for the request.
240 |     /// - Returns: A configured `URLRequest`.
241 |     private func configureRequest(with url: URL) -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
242 |         var request = URLRequest(url: url)
243 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:375:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
373 |     ///
374 |     /// - Parameter response: The `HTTPURLResponse` from which to extract cookies.
375 |     private func updateCookies(from response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |         if let headerFields = response.allHeaderFields as? [String: String],
377 |            let url = response.url {
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:388:49: error: cannot find type 'URLRequest' in scope
386 |     ///
387 |     /// - Parameter request: The `URLRequest` to which cookies will be added.
388 |     private func applyCookies(to request: inout URLRequest) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
389 |         let cookieString = Constants.cookies.map { "\($0.key)=\($0.value)" }.joined(separator: "; ")
390 |         request.addValue(cookieString, forHTTPHeaderField: "Cookie")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:91:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 89 |
 90 |             let request = configureRequest(with: url)
 91 |             let (data, _) = try await session.data(for: request)
    |                                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 92 |
 93 |             guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:159:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
157 |
158 |         let request = configureRequest(with: url)
159 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
160 |
161 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:197:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
195 |
196 |         let request = configureRequest(with: url)
197 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
198 |
199 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:242:23: error: cannot find 'URLRequest' in scope
240 |     /// - Returns: A configured `URLRequest`.
241 |     private func configureRequest(with url: URL) -> URLRequest {
242 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
243 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
244 |         request.addValue("https://scholar.google.com/", forHTTPHeaderField: "Referer")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:376:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 |     /// - Parameter response: The `HTTPURLResponse` from which to extract cookies.
375 |     private func updateCookies(from response: HTTPURLResponse) {
376 |         if let headerFields = response.allHeaderFields as? [String: String],
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 |            let url = response.url {
378 |             let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:377:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
375 |     private func updateCookies(from response: HTTPURLResponse) {
376 |         if let headerFields = response.allHeaderFields as? [String: String],
377 |            let url = response.url {
    |                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
378 |             let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
379 |             for cookie in cookies {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:378:38: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
376 |         if let headerFields = response.allHeaderFields as? [String: String],
377 |            let url = response.url {
378 |             let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
    |                                      `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
379 |             for cookie in cookies {
380 |                 Constants.cookies[cookie.name] = cookie.value
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cookies' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
[77/77] Compiling GoogleScholarSwift GoogleScholarFetcher.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 | /// A class responsible for fetching data from Google Scholar.
  5 | public class GoogleScholarFetcher {
  6 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let publicationCache = NSCache<NSString, NSArray>()
  8 |     private let articleCache = NSCache<NSString, Article>()
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     ///   - session: A custom URL session. Defaults to `.shared`.
 16 |     ///   - cacheConfig: The configuration for the cache. Defaults to `.default`.
 17 |     public init(session: URLSession = .shared, cacheConfig: GoogleScholarCacheConfig = .default) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.session = session
 19 |         self.configureCache(with: cacheConfig)
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:17:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 15 |     ///   - session: A custom URL session. Defaults to `.shared`.
 16 |     ///   - cacheConfig: The configuration for the cache. Defaults to `.default`.
 17 |     public init(session: URLSession = .shared, cacheConfig: GoogleScholarCacheConfig = .default) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |         self.session = session
 19 |         self.configureCache(with: cacheConfig)
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:12:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
 5 | public struct GoogleScholarCacheConfig {
   |               `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
 6 |     public let publicationCountLimit: Int
 7 |     public let publicationTotalCostLimit: Int
   :
10 |
11 |     /// Default cache configuration.
12 |     public static let `default` = GoogleScholarCacheConfig(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |         publicationCountLimit: 100,
14 |         publicationTotalCostLimit: 1024 * 1024 * 10,
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:241:53: error: cannot find type 'URLRequest' in scope
239 |     /// - Parameter url: The `URL` for the request.
240 |     /// - Returns: A configured `URLRequest`.
241 |     private func configureRequest(with url: URL) -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
242 |         var request = URLRequest(url: url)
243 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:375:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
373 |     ///
374 |     /// - Parameter response: The `HTTPURLResponse` from which to extract cookies.
375 |     private func updateCookies(from response: HTTPURLResponse) {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |         if let headerFields = response.allHeaderFields as? [String: String],
377 |            let url = response.url {
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/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:388:49: error: cannot find type 'URLRequest' in scope
386 |     ///
387 |     /// - Parameter request: The `URLRequest` to which cookies will be added.
388 |     private func applyCookies(to request: inout URLRequest) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
389 |         let cookieString = Constants.cookies.map { "\($0.key)=\($0.value)" }.joined(separator: "; ")
390 |         request.addValue(cookieString, forHTTPHeaderField: "Cookie")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:91:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 89 |
 90 |             let request = configureRequest(with: url)
 91 |             let (data, _) = try await session.data(for: request)
    |                                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 92 |
 93 |             guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:159:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
157 |
158 |         let request = configureRequest(with: url)
159 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
160 |
161 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:197:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
195 |
196 |         let request = configureRequest(with: url)
197 |         let (data, _) = try await session.data(for: request)
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
198 |
199 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:242:23: error: cannot find 'URLRequest' in scope
240 |     /// - Returns: A configured `URLRequest`.
241 |     private func configureRequest(with url: URL) -> URLRequest {
242 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
243 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
244 |         request.addValue("https://scholar.google.com/", forHTTPHeaderField: "Referer")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:376:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 |     /// - Parameter response: The `HTTPURLResponse` from which to extract cookies.
375 |     private func updateCookies(from response: HTTPURLResponse) {
376 |         if let headerFields = response.allHeaderFields as? [String: String],
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 |            let url = response.url {
378 |             let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:377:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
375 |     private func updateCookies(from response: HTTPURLResponse) {
376 |         if let headerFields = response.allHeaderFields as? [String: String],
377 |            let url = response.url {
    |                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
378 |             let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
379 |             for cookie in cookies {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/GoogleScholarFetcher.swift:378:38: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
376 |         if let headerFields = response.allHeaderFields as? [String: String],
377 |            let url = response.url {
378 |             let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
    |                                      `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
379 |             for cookie in cookies {
380 |                 Constants.cookies[cookie.name] = cookie.value
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cookies' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
BUILD FAILURE 6.0 linux