The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Weakable, reference 1.0.1 (79acbe), with Swift 6.1 for Linux on 25 Apr 2025 11:44:02 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BellAppLab/Weakable.git
Reference: 1.0.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/BellAppLab/Weakable
 * tag               1.0.1      -> FETCH_HEAD
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 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/BellAppLab/Weakable.git
https://github.com/BellAppLab/Weakable.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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 |     }
[4/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 |     }
Build complete! (11.12s)
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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.