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 Weakable, reference master (79acbe), with Swift 6.0 for Linux on 7 Oct 2024 23:04:55 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BellAppLab/Weakable.git
Reference: master
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/BellAppLab/Weakable
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 79acbe3 Swift 4.2
Cloned https://github.com/BellAppLab/Weakable.git
Revision (git rev-parse @):
79acbe3cc0ca67d67efb2c898f4048f1582861d0
SUCCESS checkout https://github.com/BellAppLab/Weakable.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/BellAppLab/Weakable.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module Weakable
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:43:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 41 |      Given a `Weak`, returns the underlying object if it can be converted to `T`.
 42 |      */
 43 |     public func `as`<T>() -> T? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 44 |         return object as? T
 45 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:202:5: warning: 'public' modifier is redundant for instance method declared in a public extension
200 |      - complexity: O(n)
201 |      */
202 |     public func filterWeaks() -> [Element] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
203 |         return filter { $0.object != nil }
204 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:213:5: warning: 'public' modifier is redundant for instance method declared in a public extension
211 |      - complexity: O(n)
212 |      */
213 |     public func compactWeaks() -> [Element.WeakObject] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
214 |         #if swift(>=4.0)
215 |         return compactMap { $0.object }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:228:5: warning: 'public' modifier is redundant for instance method declared in a public extension
226 |      - complexity: O(n)
227 |      */
228 |     public mutating func removeWeaks() {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
229 |         self = filterWeaks()
230 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:239:5: warning: 'public' modifier is redundant for instance method declared in a public extension
237 |      - complexity: O(n)
238 |      */
239 |     public func `as`<T>() -> [T] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
240 |         #if swift(>=4.0)
241 |         return compactMap { $0.as() }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:256:5: warning: 'public' modifier is redundant for instance method declared in a public extension
254 |      - complexity: O(n)
255 |      */
256 |     public func asWeaks() -> [Weak<Element>] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
257 |         return map { ≈$0 }
258 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:270:5: warning: 'public' modifier is redundant for instance method declared in a public extension
268 |      - complexity: O(n)
269 |      */
270 |     public func filterWeaks() -> Dictionary<Key, Value> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
271 |         #if swift(>=4.0)
272 |         return filter { $1.object != nil }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:291:5: warning: 'public' modifier is redundant for instance method declared in a public extension
289 |      - complexity: O(n)
290 |      */
291 |     public func compactWeaks() -> Dictionary<Key, Value.WeakObject> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
292 |         return filterWeaks().mapValues { $0.object! }
293 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:302:5: warning: 'public' modifier is redundant for instance method declared in a public extension
300 |      - complexity: O(n)
301 |      */
302 |     public mutating func removeWeaks() {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
303 |         self = filterWeaks()
304 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:313:5: warning: 'public' modifier is redundant for instance method declared in a public extension
311 |      - complexity: O(n)
312 |      */
313 |     public func `as`<T>() -> Dictionary<Key, T> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
314 |         var result = Dictionary<Key, T>()
315 |         forEach { result[$0] = $1.as() }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:328:5: warning: 'public' modifier is redundant for instance method declared in a public extension
326 |      - complexity: O(n)
327 |      */
328 |     public func asWeakValues() -> Dictionary<Key, Weak<Value>> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
329 |         return mapValues { ≈$0 }
330 |     }
[4/4] Compiling Weakable Weak.swift
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:43:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 41 |      Given a `Weak`, returns the underlying object if it can be converted to `T`.
 42 |      */
 43 |     public func `as`<T>() -> T? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 44 |         return object as? T
 45 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:202:5: warning: 'public' modifier is redundant for instance method declared in a public extension
200 |      - complexity: O(n)
201 |      */
202 |     public func filterWeaks() -> [Element] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
203 |         return filter { $0.object != nil }
204 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:213:5: warning: 'public' modifier is redundant for instance method declared in a public extension
211 |      - complexity: O(n)
212 |      */
213 |     public func compactWeaks() -> [Element.WeakObject] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
214 |         #if swift(>=4.0)
215 |         return compactMap { $0.object }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:228:5: warning: 'public' modifier is redundant for instance method declared in a public extension
226 |      - complexity: O(n)
227 |      */
228 |     public mutating func removeWeaks() {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
229 |         self = filterWeaks()
230 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:239:5: warning: 'public' modifier is redundant for instance method declared in a public extension
237 |      - complexity: O(n)
238 |      */
239 |     public func `as`<T>() -> [T] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
240 |         #if swift(>=4.0)
241 |         return compactMap { $0.as() }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:256:5: warning: 'public' modifier is redundant for instance method declared in a public extension
254 |      - complexity: O(n)
255 |      */
256 |     public func asWeaks() -> [Weak<Element>] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
257 |         return map { ≈$0 }
258 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:270:5: warning: 'public' modifier is redundant for instance method declared in a public extension
268 |      - complexity: O(n)
269 |      */
270 |     public func filterWeaks() -> Dictionary<Key, Value> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
271 |         #if swift(>=4.0)
272 |         return filter { $1.object != nil }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:291:5: warning: 'public' modifier is redundant for instance method declared in a public extension
289 |      - complexity: O(n)
290 |      */
291 |     public func compactWeaks() -> Dictionary<Key, Value.WeakObject> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
292 |         return filterWeaks().mapValues { $0.object! }
293 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:302:5: warning: 'public' modifier is redundant for instance method declared in a public extension
300 |      - complexity: O(n)
301 |      */
302 |     public mutating func removeWeaks() {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
303 |         self = filterWeaks()
304 |     }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:313:5: warning: 'public' modifier is redundant for instance method declared in a public extension
311 |      - complexity: O(n)
312 |      */
313 |     public func `as`<T>() -> Dictionary<Key, T> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
314 |         var result = Dictionary<Key, T>()
315 |         forEach { result[$0] = $1.as() }
/host/spi-builder-workspace/Sources/Weakable/Weak.swift:328:5: warning: 'public' modifier is redundant for instance method declared in a public extension
326 |      - complexity: O(n)
327 |      */
328 |     public func asWeakValues() -> Dictionary<Key, Weak<Value>> {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
329 |         return mapValues { ≈$0 }
330 |     }
Build complete! (9.02s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Weakable",
  "name" : "Weakable",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Weakable",
      "targets" : [
        "Weakable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "3",
    "4"
  ],
  "targets" : [
    {
      "c99name" : "WeakableTests",
      "module_type" : "SwiftTarget",
      "name" : "WeakableTests",
      "path" : "Tests/WeakableTests",
      "sources" : [
        "WeakTests.swift"
      ],
      "target_dependencies" : [
        "Weakable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Weakable",
      "module_type" : "SwiftTarget",
      "name" : "Weakable",
      "path" : "Sources/Weakable",
      "product_memberships" : [
        "Weakable"
      ],
      "sources" : [
        "Weak.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.