Build Information
Successful build of ReadingTimePublishPlugin, reference 0.3.0 (0a0bf1
), with Swift 6.0 for Linux on 2 Nov 2024 20:40:49 UTC.
Swift 6 data race errors: 2
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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexito4/ReadingTimePublishPlugin.git
Reference: 0.3.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/alexito4/ReadingTimePublishPlugin
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at 0a0bf14 fixed readme
Cloned https://github.com/alexito4/ReadingTimePublishPlugin.git
Revision (git rev-parse @):
0a0bf141a5b626c2444601cf0ed7b2bfcfdabcdf
SUCCESS checkout https://github.com/alexito4/ReadingTimePublishPlugin.git at 0.3.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/alexito4/ReadingTimePublishPlugin.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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/johnsundell/publish.git
[1/2895] Fetching publish
Fetched https://github.com/johnsundell/publish.git from cache (0.28s)
Computing version for https://github.com/johnsundell/publish.git
Computed https://github.com/johnsundell/publish.git at 0.9.0 (0.50s)
Fetching https://github.com/johnsundell/plot.git
Fetching https://github.com/johnsundell/collectionConcurrencyKit.git
Fetching https://github.com/johnsundell/sweep.git
Fetching https://github.com/johnsundell/codextended.git
Fetching https://github.com/johnsundell/shellout.git
Fetching https://github.com/johnsundell/files.git
[1/116] Fetching sweep
[117/297] Fetching sweep, codextended
[298/1528] Fetching sweep, codextended, files
[335/1611] Fetching sweep, codextended, files, collectionconcurrencykit
[1403/2571] Fetching sweep, codextended, files, collectionconcurrencykit, shellout
[1804/4657] Fetching sweep, codextended, files, collectionconcurrencykit, shellout, plot
Fetched https://github.com/johnsundell/sweep.git from cache (0.26s)
Fetched https://github.com/johnsundell/collectionConcurrencyKit.git from cache (0.26s)
Fetched https://github.com/johnsundell/codextended.git from cache (0.26s)
Fetching https://github.com/johnsundell/ink.git
Fetched https://github.com/johnsundell/shellout.git from cache (0.27s)
Fetched https://github.com/johnsundell/files.git from cache (0.28s)
Fetched https://github.com/johnsundell/plot.git from cache (0.28s)
[1/1905] Fetching ink
Fetched https://github.com/johnsundell/ink.git from cache (0.19s)
Computing version for https://github.com/johnsundell/sweep.git
Computed https://github.com/johnsundell/sweep.git at 0.4.0 (0.50s)
Computing version for https://github.com/johnsundell/shellout.git
Computed https://github.com/johnsundell/shellout.git at 2.3.0 (2.17s)
Computing version for https://github.com/johnsundell/collectionConcurrencyKit.git
Computed https://github.com/johnsundell/collectionConcurrencyKit.git at 0.2.0 (0.58s)
Computing version for https://github.com/johnsundell/codextended.git
Computed https://github.com/johnsundell/codextended.git at 0.3.0 (0.62s)
Computing version for https://github.com/johnsundell/files.git
Computed https://github.com/johnsundell/files.git at 4.2.0 (0.68s)
Computing version for https://github.com/johnsundell/ink.git
Computed https://github.com/johnsundell/ink.git at 0.6.0 (0.65s)
Computing version for https://github.com/johnsundell/plot.git
Computed https://github.com/johnsundell/plot.git at 0.14.0 (0.74s)
Creating working copy for https://github.com/johnsundell/plot.git
Working copy of https://github.com/johnsundell/plot.git resolved at 0.14.0
Creating working copy for https://github.com/johnsundell/sweep.git
Working copy of https://github.com/johnsundell/sweep.git resolved at 0.4.0
Creating working copy for https://github.com/johnsundell/collectionConcurrencyKit.git
Working copy of https://github.com/johnsundell/collectionConcurrencyKit.git resolved at 0.2.0
Creating working copy for https://github.com/johnsundell/files.git
Working copy of https://github.com/johnsundell/files.git resolved at 4.2.0
Creating working copy for https://github.com/johnsundell/codextended.git
Working copy of https://github.com/johnsundell/codextended.git resolved at 0.3.0
Creating working copy for https://github.com/johnsundell/ink.git
Working copy of https://github.com/johnsundell/ink.git resolved at 0.6.0
Creating working copy for https://github.com/johnsundell/shellout.git
Working copy of https://github.com/johnsundell/shellout.git resolved at 2.3.0
Creating working copy for https://github.com/johnsundell/publish.git
Working copy of https://github.com/johnsundell/publish.git resolved at 0.9.0
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/111] Emitting module ShellOut
[12/111] Emitting module Ink
[13/115] Emitting module Plot
[14/123] Compiling Ink TextStyle.swift
[15/123] Compiling Ink TextStyleMarker.swift
[16/123] Compiling Ink URL.swift
[17/123] Compiling Ink URLDeclaration.swift
[18/123] Emitting module CollectionConcurrencyKit
[19/123] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
[20/124] Compiling Ink Image.swift
[21/124] Compiling Ink InlineCode.swift
[22/124] Compiling Ink KeyPathPatterns.swift
[23/124] Compiling Ink Link.swift
[25/124] Compiling Ink List.swift
[26/124] Compiling Ink Metadata.swift
[27/124] Compiling Ink Modifiable.swift
[28/124] Compiling Ink ModifierCollection.swift
[29/124] Compiling Ink HTMLConvertible.swift
[30/124] Compiling Ink Hashable+AnyOf.swift
[31/124] Compiling Ink Heading.swift
[32/124] Compiling Ink HorizontalLine.swift
[33/124] Compiling Ink Character+Escaping.swift
[34/124] Compiling Ink CodeBlock.swift
[35/124] Compiling Ink FormattedText.swift
[36/124] Compiling Ink Fragment.swift
[37/124] Compiling Ink HTML.swift
[38/124] Compiling Ink Markdown.swift
[39/124] Compiling Ink MarkdownParser.swift
[40/124] Compiling Ink Modifier.swift
[41/124] Compiling Ink Blockquote.swift
[42/124] Compiling Ink Character+Classification.swift
[43/124] Compiling Plot AnyEnvironmentValue.swift
[44/124] Compiling Plot AnyNode.swift
[45/124] Compiling Plot ElementRenderingBuffer.swift
[46/124] Compiling Plot ElementWrapper.swift
[47/124] Compiling Plot Environment.swift
[48/124] Compiling Plot ModifiedComponent.swift
[49/124] Compiling Plot Renderer.swift
[50/124] Compiling Plot String+Escaping.swift
[51/124] Compiling ShellOut ShellOut.swift
[52/125] Compiling Sweep Sweep.swift
[53/125] Emitting module Sweep
[54/125] Compiling Plot SiteMapElements.swift
[55/125] Compiling Plot TwitterCardType.swift
[56/125] Compiling Plot URLRepresentable.swift
[57/125] Compiling Plot XML.swift
[58/125] Compiling Plot XMLAttributes.swift
[59/125] Compiling Plot XMLElements.swift
[60/125] Compiling Plot AnyAttribute.swift
[61/125] Compiling Plot AnyElement.swift
[62/125] Compiling Plot Node.swift
[63/125] Compiling Plot NodeConvertible.swift
[64/125] Compiling Plot Optional+Component.swift
[65/125] Compiling Plot PodcastAttributes.swift
[66/125] Compiling Plot PodcastComponents.swift
[67/125] Compiling Plot PodcastElements.swift
[68/125] Compiling Plot PodcastEpisodeType.swift
[69/125] Compiling Plot PodcastFeed.swift
[70/125] Compiling Plot PodcastMediaType.swift
[71/125] Compiling Plot PodcastType.swift
[72/125] Compiling Plot RSS.swift
[73/125] Compiling Plot RSSAttributes.swift
[74/125] Compiling Plot RSSElements.swift
[75/125] Compiling Plot Renderable.swift
[76/125] Compiling Plot SiteMap.swift
[77/125] Compiling Plot SiteMapChangeFrequency.swift
[79/126] Emitting module Codextended
[80/126] Compiling Codextended Codextended.swift
[81/126] Emitting module Files
[82/126] Compiling Files Files.swift
[84/128] Compiling Ink Require.swift
[85/128] Compiling Ink Substring+Trimming.swift
[86/128] Compiling Ink Table.swift
[91/128] Compiling Plot Language.swift
[96/128] Compiling Ink NamedURLCollection.swift
[97/128] Compiling Ink Paragraph.swift
[98/128] Compiling Ink PlainTextConvertible.swift
[99/128] Compiling Ink Readable.swift
[100/128] Compiling Ink Reader.swift
[131/183] Compiling Publish AnyItem.swift
[132/183] Compiling Publish Audio.swift
[133/183] Compiling Publish Content.swift
[134/183] Compiling Publish ContentProtocol.swift
[135/183] Compiling Publish DeploymentMethod.swift
[136/183] Compiling Publish Favicon.swift
[137/183] Compiling Publish FeedConfiguration.swift
[138/183] Compiling Publish HTMLFactory.swift
[139/190] Compiling Publish HTMLFileMode.swift
[140/190] Compiling Publish Index.swift
[141/190] Compiling Publish Item.swift
[142/190] Compiling Publish ItemRSSProperties.swift
[143/190] Compiling Publish Location.swift
[144/190] Compiling Publish Mutations.swift
[145/190] Compiling Publish Page.swift
[146/190] Compiling Publish Path.swift
[147/190] Compiling Publish PlotComponents.swift
[148/190] Compiling Publish PlotEnvironmentKeys.swift
[149/190] Compiling Publish PlotModifiers.swift
[150/190] Compiling Publish Plugin.swift
[151/190] Compiling Publish PodcastAuthor.swift
[152/190] Compiling Publish PodcastCompatibleWebsiteItemMetadata.swift
[153/190] Compiling Publish PodcastEpisodeMetadata.swift
[154/190] Compiling Publish PodcastFeedConfiguration.swift
[155/190] Emitting module Publish
[156/190] Compiling Publish Theme+Foundation.swift
[157/190] Compiling Publish Theme.swift
[158/190] Compiling Publish Video.swift
[159/190] Compiling Publish Website.swift
[160/190] Compiling Publish Array+Appending.swift
[161/190] Compiling Publish CommandLine+Output.swift
[162/190] Compiling Publish ContentError.swift
[163/190] Compiling Publish File+SwiftPackageFolder.swift
[164/190] Compiling Publish FileIOError.swift
[165/190] Compiling Publish Folder+Group.swift
[166/190] Compiling Publish HTMLGenerator.swift
[167/190] Compiling Publish MarkdownContentFactory.swift
[168/190] Compiling Publish MarkdownFileHandler.swift
[169/190] Compiling Publish MarkdownMetadataDecoder.swift
[170/190] Compiling Publish SectionMap.swift
[171/190] Compiling Publish SortOrder.swift
[172/190] Compiling Publish StringWrapper.swift
[173/190] Compiling Publish Tag.swift
[174/190] Compiling Publish TagDetailsPage.swift
[175/190] Compiling Publish TagHTMLConfiguration.swift
[176/190] Compiling Publish TagListPage.swift
[177/190] Compiling Publish Predicate.swift
[178/190] Compiling Publish PublishedWebsite.swift
[179/190] Compiling Publish PublishingContext.swift
[180/190] Compiling Publish PublishingError.swift
[181/190] Compiling Publish PublishingStep.swift
[182/190] Compiling Publish RSSFeedConfiguration.swift
[183/190] Compiling Publish Section.swift
[184/190] Compiling Publish PodcastError.swift
[185/190] Compiling Publish PodcastFeedGenerator.swift
[186/190] Compiling Publish PublishingPipeline.swift
[187/190] Compiling Publish RSSFeedGenerator.swift
[188/190] Compiling Publish ShellOutError+PublishingErrorConvertible.swift
[189/190] Compiling Publish SiteMapGenerator.swift
[190/190] Compiling Publish String+Normalized.swift
[192/194] Compiling ReadingTimePublishPlugin CommandLine+Output.swift
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/CommandLine+Output.swift:8:5: warning: var 'output' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | var output: (String, OutputKind) -> Void = { string, kind in
| |- warning: var 'output' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'output' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'output' 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 | var string = string + "\n"
10 |
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/CommandLine+Output.swift:42:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 | switch self {
41 | case .info, .warning, .success:
42 | return stdout
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
43 | case .error:
44 | return stdout
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/CommandLine+Output.swift:44:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 | return stdout
43 | case .error:
44 | return stdout
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
45 | }
46 | }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[193/194] Emitting module ReadingTimePublishPlugin
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/CommandLine+Output.swift:8:5: warning: var 'output' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | var output: (String, OutputKind) -> Void = { string, kind in
| |- warning: var 'output' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'output' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'output' 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 | var string = string + "\n"
10 |
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/ReadingTime.swift:42:13: warning: var 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | private var data = [AnyHashable: ReadingTimeMetadata]()
| |- warning: var 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'data' 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
43 |
44 | func estimateTime(for string: String, wordsPerMinute: Int) -> ReadingTimeMetadata {
[194/194] Compiling ReadingTimePublishPlugin ReadingTime.swift
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/ReadingTime.swift:42:13: warning: var 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | private var data = [AnyHashable: ReadingTimeMetadata]()
| |- warning: var 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'data' 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
43 |
44 | func estimateTime(for string: String, wordsPerMinute: Int) -> ReadingTimeMetadata {
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/CommandLine+Output.swift:8:5: warning: var 'output' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | var output: (String, OutputKind) -> Void = { string, kind in
| |- warning: var 'output' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'output' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'output' 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 | var string = string + "\n"
10 |
Build complete! (45.37s)
Build complete.
{
"dependencies" : [
{
"identity" : "publish",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnsundell/publish.git"
}
],
"manifest_display_name" : "ReadingTimePublishPlugin",
"name" : "ReadingTimePublishPlugin",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "ReadingTimePublishPlugin",
"targets" : [
"ReadingTimePublishPlugin"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReadingTimePublishPluginTests",
"module_type" : "SwiftTarget",
"name" : "ReadingTimePublishPluginTests",
"path" : "Tests/ReadingTimePublishPluginTests",
"sources" : [
"ConsoleOutputTests.swift",
"ReadingTimeTests.swift"
],
"target_dependencies" : [
"ReadingTimePublishPlugin"
],
"type" : "test"
},
{
"c99name" : "ReadingTimePublishPlugin",
"module_type" : "SwiftTarget",
"name" : "ReadingTimePublishPlugin",
"path" : "Sources/ReadingTimePublishPlugin",
"product_dependencies" : [
"Publish"
],
"product_memberships" : [
"ReadingTimePublishPlugin"
],
"sources" : [
"CommandLine+Output.swift",
"ReadingTime.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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.