Build Information
Successful build of Fuse with Swift 6.0 for Linux.
Swift 6 data race errors: 0
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krisk/fuse-swift.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/krisk/fuse-swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 26ba868 Updated version
Cloned https://github.com/krisk/fuse-swift.git
Revision (git rev-parse @):
26ba868691b2d8b7bf2b1322951eb591be70ccca
SUCCESS checkout https://github.com/krisk/fuse-swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/krisk/fuse-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Fuse String+Fuse.swift
[4/6] Emitting module Fuse
[5/6] Compiling Fuse Fuse.swift
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:369:37: warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public class Fuse {
| `- note: class 'Fuse' does not conform to the 'Sendable' protocol
30 | private var location: Int
31 | private var distance: Int
:
367 |
368 | for (index, item) in chunk.enumerated() {
369 | if let result = self.search(pattern, in: item) {
| `- warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 | chunkItems.append((offset + index, result.score, result.ranges))
371 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:21: warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 | itemsQueue.async {
375 | items.append(contentsOf: chunkItems)
| `- warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
376 | group.leave()
377 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:46: warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 | itemsQueue.async {
375 | items.append(contentsOf: chunkItems)
| `- warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
376 | group.leave()
377 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:386:17: warning: capture of 'completion' with non-sendable type '([Fuse.SearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, ranges: Array<ClosedRange<Int>>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
384 | let sorted = items.sorted { $0.score < $1.score }
385 | DispatchQueue.main.async {
386 | completion(sorted)
| |- warning: capture of 'completion' with non-sendable type '([Fuse.SearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, ranges: Array<ClosedRange<Int>>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
387 | }
388 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:521:38: warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 |
25 | public protocol Fuseable {
| `- note: protocol 'Fuseable' does not conform to the 'Sendable' protocol
26 | var properties: [FuseProperty] { get }
27 | }
:
519 | var chunkResult = [FusableSearchResult]()
520 |
521 | for (index, item) in chunk.enumerated() {
| `- warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
522 | var scores = [Double]()
523 | var totalScore = 0.0
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public class Fuse {
| `- note: class 'Fuse' does not conform to the 'Sendable' protocol
30 | private var location: Int
31 | private var distance: Int
:
529 | let value = property.name
530 |
531 | if let result = self.search(pattern, in: value) {
| `- warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | let weight = property.weight == 1 ? 1 : 1 - property.weight
533 | let score = result.score * weight
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
27 | }
28 |
29 | public class Fuse {
| `- note: class 'Fuse' does not conform to the 'Sendable' protocol
30 | private var location: Int
31 | private var distance: Int
:
529 | let value = property.name
530 |
531 | if let result = self.search(pattern, in: value) {
| `- warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
532 | let weight = property.weight == 1 ? 1 : 1 - property.weight
533 | let score = result.score * weight
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:21: warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 | collectionResultQueue.async {
554 | collectionResult.append(contentsOf: chunkResult)
| `- warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 | group.leave()
556 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:57: warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 | collectionResultQueue.async {
554 | collectionResult.append(contentsOf: chunkResult)
| `- warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 | group.leave()
556 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:565:17: warning: capture of 'completion' with non-sendable type '([Fuse.FusableSearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, results: Array<(key: String, score: Double, ranges: Array<ClosedRange<Int>>)>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
563 | let sorted = collectionResult.sorted { $0.score < $1.score }
564 | DispatchQueue.main.async {
565 | completion(sorted)
| |- warning: capture of 'completion' with non-sendable type '([Fuse.FusableSearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, results: Array<(key: String, score: Double, ranges: Array<ClosedRange<Int>>)>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
566 | }
567 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:386:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
384 | let sorted = items.sorted { $0.score < $1.score }
385 | DispatchQueue.main.async {
386 | completion(sorted)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
387 | }
388 | }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:565:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
563 | let sorted = collectionResult.sorted { $0.score < $1.score }
564 | DispatchQueue.main.async {
565 | completion(sorted)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
566 | }
567 | }
[6/6] Compiling Fuse FuseUtilities.swift
Build complete! (10.55s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Fuse",
"name" : "Fuse",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "8.0"
},
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "Fuse",
"targets" : [
"Fuse"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "Fuse",
"module_type" : "SwiftTarget",
"name" : "Fuse",
"path" : "Fuse",
"product_memberships" : [
"Fuse"
],
"sources" : [
"Classes/Fuse.swift",
"Classes/FuseUtilities.swift",
"Classes/String+Fuse.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.