The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of GoogleScholarSwift, reference 1.3.1 (4e53fd), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 18:06:36 UTC.

Swift 6 data race errors: 2

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ezefranca/GoogleScholarSwift.git
Reference: 1.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/apple/swift-docc-plugin.git
Fetching https://github.com/scinfu/SwiftSoup.git
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3197] Fetching swiftsoup
[129/5235] Fetching swiftsoup, swift-docc-plugin
[898/8388] Fetching swiftsoup, swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.25s)
[3850/5235] Fetching swiftsoup, swift-docc-plugin
Fetched https://github.com/scinfu/SwiftSoup.git from cache (1.25s)
[673/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.30s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.3.0 (3.38s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.2 (0.65s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.73s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.2
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.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "googlescholarswift",
      "name": "GoogleScholarSwift",
      "url": "https://github.com/ezefranca/GoogleScholarSwift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GoogleScholarSwift",
      "dependencies": [
        {
          "identity": "swiftsoup",
          "name": "SwiftSoup",
          "url": "https://github.com/scinfu/SwiftSoup.git",
          "version": "2.7.6",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSoup",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ezefranca/GoogleScholarSwift.git
[1/373] Fetching googlescholarswift
Fetched https://github.com/ezefranca/GoogleScholarSwift.git from cache (1.01s)
Fetching https://github.com/scinfu/SwiftSoup.git from cache
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.47s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.6 (0.63s)
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/ezefranca/GoogleScholarSwift.git
Working copy of https://github.com/ezefranca/GoogleScholarSwift.git resolved at 1.3.1 (4e53fd6)
warning: '.resolve-product-dependencies': dependency 'googlescholarswift' is not used by any target
Found 1 product dependencies
  - SwiftSoup
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ezefranca/GoogleScholarSwift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/6] Copying PrivacyInfo.xcprivacy
[3/6] Write sources
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/61] Emitting module SwiftSoup
[8/66] Compiling SwiftSoup TokenQueue.swift
[9/66] Compiling SwiftSoup Tokeniser.swift
[10/66] Compiling SwiftSoup TokeniserState.swift
[11/66] Compiling SwiftSoup TreeBuilder.swift
[12/66] Compiling SwiftSoup UnfairLock.swift
[13/66] Compiling SwiftSoup UnicodeScalar.swift
[14/66] Compiling SwiftSoup ArrayExt.swift
[15/66] Compiling SwiftSoup Attribute.swift
[16/66] Compiling SwiftSoup Attributes.swift
[17/66] Compiling SwiftSoup BinarySearch.swift
[18/66] Compiling SwiftSoup BooleanAttribute.swift
[19/66] Compiling SwiftSoup CharacterExt.swift
[20/66] Compiling SwiftSoup StringUtil.swift
[21/66] Compiling SwiftSoup StructuralEvaluator.swift
[22/66] Compiling SwiftSoup SwiftSoup.swift
[23/66] Compiling SwiftSoup Tag.swift
[24/66] Compiling SwiftSoup TextNode.swift
[25/66] Compiling SwiftSoup Token.swift
[26/66] Compiling SwiftSoup CharacterReader.swift
[27/66] Compiling SwiftSoup Cleaner.swift
[28/66] Compiling SwiftSoup Collector.swift
[29/66] Compiling SwiftSoup CombiningEvaluator.swift
[30/66] Compiling SwiftSoup Comment.swift
[31/66] Compiling SwiftSoup Connection.swift
[32/66] Compiling SwiftSoup CssSelector.swift
[33/66] Compiling SwiftSoup DataNode.swift
[34/66] Compiling SwiftSoup DataUtil.swift
[35/66] Compiling SwiftSoup Document.swift
[36/66] Compiling SwiftSoup DocumentType.swift
[37/66] Compiling SwiftSoup Element.swift
[38/66] Compiling SwiftSoup OrderedSet.swift
[39/66] Compiling SwiftSoup ParseError.swift
[40/66] Compiling SwiftSoup ParseErrorList.swift
[41/66] Compiling SwiftSoup ParseSettings.swift
[42/66] Compiling SwiftSoup Parser.swift
[43/66] Compiling SwiftSoup Pattern.swift
[44/66] Compiling SwiftSoup QueryParser.swift
[45/66] Compiling SwiftSoup SerializationException.swift
[46/66] Compiling SwiftSoup SimpleDictionary.swift
[47/66] Compiling SwiftSoup StreamReader.swift
[48/66] Compiling SwiftSoup String.swift
[49/66] Compiling SwiftSoup StringBuilder.swift
[50/66] Compiling SwiftSoup Elements.swift
[51/66] Compiling SwiftSoup Entities.swift
[52/66] Compiling SwiftSoup Evaluator.swift
[53/66] Compiling SwiftSoup Exception.swift
[54/66] Compiling SwiftSoup FormElement.swift
[55/66] Compiling SwiftSoup HtmlTreeBuilder.swift
[56/66] Compiling SwiftSoup HtmlTreeBuilderState.swift
[57/66] Compiling SwiftSoup HttpStatusException.swift
[58/66] Compiling SwiftSoup Mutex.swift
[59/66] Compiling SwiftSoup Node.swift
[60/66] Compiling SwiftSoup NodeTraversor.swift
[61/66] Compiling SwiftSoup NodeVisitor.swift
[62/66] Compiling SwiftSoup Validate.swift
[63/66] Compiling SwiftSoup Whitelist.swift
[64/66] Compiling SwiftSoup XmlDeclaration.swift
[65/66] Compiling SwiftSoup XmlTreeBuilder.swift
[66/66] Compiling SwiftSoup resource_bundle_accessor.swift
[67/77] Compiling GoogleScholarSwift GoogleScholarID.swift
[68/78] Compiling GoogleScholarSwift GoogleScholarCacheConfig.swift
/Users/admin/builder/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,
[69/78] Compiling GoogleScholarSwift Author.swift
[70/78] Compiling GoogleScholarSwift AuthorMetrics.swift
[71/78] Compiling GoogleScholarSwift ArticleLink.swift
[72/78] Compiling GoogleScholarSwift SortBy.swift
[73/78] Compiling GoogleScholarSwift Article.swift
[74/78] Compiling GoogleScholarSwift Constants.swift
/Users/admin/builder/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/78] Compiling GoogleScholarSwift FetchQuantity.swift
/Users/admin/builder/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/78] Emitting module GoogleScholarSwift
/Users/admin/builder/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 |     ]
/Users/admin/builder/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,
[77/78] Compiling GoogleScholarSwift GoogleScholarFetcher.swift
/Users/admin/builder/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,
/Users/admin/builder/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 |     ]
[78/78] Compiling GoogleScholarSwift Publication.swift
Build complete! (36.47s)
warning: 'swiftsoup': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Info.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoWatchOS.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfotvOS.plist
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftsoup",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.7.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/scinfu/SwiftSoup.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin.git"
    }
  ],
  "manifest_display_name" : "GoogleScholarSwift",
  "name" : "GoogleScholarSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "GoogleScholarSwift",
      "targets" : [
        "GoogleScholarSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GoogleScholarSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "GoogleScholarSwiftTests",
      "path" : "Tests",
      "sources" : [
        "GoogleScholarFetcherTests/GoogleScholarSwiftTests.swift"
      ],
      "target_dependencies" : [
        "GoogleScholarSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GoogleScholarSwift",
      "module_type" : "SwiftTarget",
      "name" : "GoogleScholarSwift",
      "path" : "Sources/GoogleScholarSwift",
      "product_dependencies" : [
        "SwiftSoup"
      ],
      "product_memberships" : [
        "GoogleScholarSwift"
      ],
      "sources" : [
        "Constants/Constants.swift",
        "Enums/FetchQuantity.swift",
        "Enums/SortBy.swift",
        "Impl/GoogleScholarFetcher.swift",
        "Models/Article.swift",
        "Models/ArticleLink.swift",
        "Models/Author.swift",
        "Models/AuthorMetrics.swift",
        "Models/GoogleScholarCacheConfig.swift",
        "Models/GoogleScholarID.swift",
        "Models/Publication.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.