Build Information
Successful build of text-to-emoji, reference 0.1.0 (c9f2e9
), with Swift 6.0 for Linux on 29 Nov 2024 01:48:09 UTC.
Swift 6 data race errors: 1
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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WouterWisse/text-to-emoji.git
Reference: 0.1.0
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/WouterWisse/text-to-emoji
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at c9f2e92 Add more words and adjectives
Cloned https://github.com/WouterWisse/text-to-emoji.git
Revision (git rev-parse @):
c9f2e9213351e2d5402ba80b02332fc4bdfc055c
SUCCESS checkout https://github.com/WouterWisse/text-to-emoji.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/WouterWisse/text-to-emoji.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 -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.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
Building for debugging...
[0/21] Write sources
[0/21] Copying Activity.strings
[0/21] Copying Flags.strings
[3/21] Copying AnimalsAndNature.strings
[3/21] Copying TravelAndPlaces.strings
[3/21] Copying Objects.strings
[3/21] Copying SmileysAndPeople.strings
[3/21] Copying FoodAndDrink.strings
[3/21] Copying Flags.strings
[3/21] Copying Activity.strings
[3/21] Copying Adjectives.strings
[3/21] Copying Symbols.strings
[3/21] Copying TravelAndPlaces.strings
[3/21] Copying SmileysAndPeople.strings
[3/21] Copying Objects.strings
[3/21] Copying FoodAndDrink.strings
[3/21] Copying AnimalsAndNature.strings
[3/21] Copying Adjectives.strings
[3/21] Copying Info.plist
[19/21] Copying Symbols.strings
[20/21] Write swift-version-24593BA9C3E375BF.txt
[22/27] Compiling TextToEmoji resource_bundle_accessor.swift
[23/27] Compiling TextToEmoji TextToEmoji.swift
/host/spi-builder-workspace/Sources/TextToEmoji/TextToEmoji.swift:66:34: warning: 'init(contentsOfFile:)' is deprecated
64 | guard
65 | let path = bundle.localizedTablePath(for: tableName, localization: language),
66 | let dictionary = NSDictionary(contentsOfFile: path),
| `- warning: 'init(contentsOfFile:)' is deprecated
67 | let allKeys = dictionary.allKeys as? [String]
68 | else { continue }
/host/spi-builder-workspace/Sources/TextToEmoji/StringMatchScoreProvider.swift:8:17: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StringMatchScoreProvider' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct StringMatchScoreProvider {
| `- note: consider making struct 'StringMatchScoreProvider' conform to the 'Sendable' protocol
4 | var provideScore: (_ text: String, _ possibleMatch: String) -> Int
5 | }
6 |
7 | public extension StringMatchScoreProvider {
8 | static let `default` = StringMatchScoreProvider(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StringMatchScoreProvider' 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
9 | provideScore: { text, possibleMatch in
10 | // https://en.wikipedia.org/wiki/Levenshtein_distance
/host/spi-builder-workspace/Sources/TextToEmoji/TextToEmoji.swift:33:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | category: EmojiCategory?
32 | ) async throws -> String {
33 | let emojiTask = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | let input = text.prepareString()
35 |
36 | let allTables = EmojiCategory.allCases
37 | .map { $0.tableName }
38 | .sorted(by: { $0 == category?.tableName && $1 != category?.tableName })
| `- note: closure captures 'category' which is accessible to code in the current task
39 |
40 | for table in allTables {
[24/27] Compiling TextToEmoji String+Preparation.swift
/host/spi-builder-workspace/Sources/TextToEmoji/Extensions/String+Preparation.swift:10:30: warning: 'init(contentsOfFile:)' is deprecated
8 | preparedString.components(separatedBy: " ").count > 1,
9 | let path = Bundle.module.path(forResource: "Adjectives", ofType: "strings"),
10 | let dictionary = NSDictionary(contentsOfFile: path),
| `- warning: 'init(contentsOfFile:)' is deprecated
11 | let allKeys = dictionary.allKeys as? [String]
12 | else { return preparedString }
[25/27] Compiling TextToEmoji EmojiCategory.swift
[26/27] Compiling TextToEmoji StringMatchScoreProvider.swift
/host/spi-builder-workspace/Sources/TextToEmoji/StringMatchScoreProvider.swift:8:17: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StringMatchScoreProvider' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct StringMatchScoreProvider {
| `- note: consider making struct 'StringMatchScoreProvider' conform to the 'Sendable' protocol
4 | var provideScore: (_ text: String, _ possibleMatch: String) -> Int
5 | }
6 |
7 | public extension StringMatchScoreProvider {
8 | static let `default` = StringMatchScoreProvider(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StringMatchScoreProvider' 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
9 | provideScore: { text, possibleMatch in
10 | // https://en.wikipedia.org/wiki/Levenshtein_distance
[27/27] Emitting module TextToEmoji
/host/spi-builder-workspace/Sources/TextToEmoji/StringMatchScoreProvider.swift:8:17: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StringMatchScoreProvider' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct StringMatchScoreProvider {
| `- note: consider making struct 'StringMatchScoreProvider' conform to the 'Sendable' protocol
4 | var provideScore: (_ text: String, _ possibleMatch: String) -> Int
5 | }
6 |
7 | public extension StringMatchScoreProvider {
8 | static let `default` = StringMatchScoreProvider(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StringMatchScoreProvider' 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
9 | provideScore: { text, possibleMatch in
10 | // https://en.wikipedia.org/wiki/Levenshtein_distance
Build complete! (12.58s)
Build complete.
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "text-to-emoji",
"name" : "text-to-emoji",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "TextToEmoji",
"targets" : [
"TextToEmoji"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TextToEmojiTests",
"module_type" : "SwiftTarget",
"name" : "TextToEmojiTests",
"path" : "Tests/TextToEmojiTests",
"sources" : [
"Mocks/MockStringMatchScoreProvider.swift",
"StringMatchScoreProviderTests.swift",
"StringPreparationTests.swift",
"TextToEmojiTests.swift"
],
"target_dependencies" : [
"TextToEmoji"
],
"type" : "test"
},
{
"c99name" : "TextToEmoji",
"module_type" : "SwiftTarget",
"name" : "TextToEmoji",
"path" : "Sources/TextToEmoji",
"product_memberships" : [
"TextToEmoji"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/Activity.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/Adjectives.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/AnimalsAndNature.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/Flags.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/FoodAndDrink.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/Objects.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/SmileysAndPeople.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/Symbols.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/en.lproj/TravelAndPlaces.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/Activity.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/Adjectives.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/AnimalsAndNature.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/Flags.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/FoodAndDrink.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/Objects.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/SmileysAndPeople.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/Symbols.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/TextToEmoji/Resources/nl.lproj/TravelAndPlaces.strings",
"rule" : {
"process" : {
"localization" : "nl"
}
}
}
],
"sources" : [
"EmojiCategory.swift",
"Extensions/String+Preparation.swift",
"StringMatchScoreProvider.swift",
"TextToEmoji.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
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
Done.