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 ReadingTimePublishPlugin, reference 0.3.0 (0a0bf1), with Swift 6.1 for Linux on 27 Apr 2025 07:17:58 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/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.1
Building package at path:  $PWD
https://github.com/alexito4/ReadingTimePublishPlugin.git
https://github.com/alexito4/ReadingTimePublishPlugin.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
Fetching https://github.com/johnsundell/publish.git
[1/2898] Fetching publish
Fetched https://github.com/johnsundell/publish.git from cache (0.30s)
Computing version for https://github.com/johnsundell/publish.git
Computed https://github.com/johnsundell/publish.git at 0.9.0 (1.06s)
Fetching https://github.com/johnsundell/collectionConcurrencyKit.git
Fetching https://github.com/johnsundell/plot.git
Fetching https://github.com/johnsundell/files.git
Fetching https://github.com/johnsundell/sweep.git
Fetching https://github.com/johnsundell/codextended.git
Fetching https://github.com/johnsundell/shellout.git
[1/181] Fetching codextended
[182/265] Fetching codextended, collectionconcurrencykit
[266/1501] Fetching codextended, collectionconcurrencykit, files
[501/2461] Fetching codextended, collectionconcurrencykit, files, shellout
[2103/2577] Fetching codextended, collectionconcurrencykit, files, shellout, sweep
[2306/4663] Fetching codextended, collectionconcurrencykit, files, shellout, sweep, plot
Fetched https://github.com/johnsundell/sweep.git from cache (0.33s)
Fetched https://github.com/johnsundell/shellout.git from cache (0.33s)
Fetching https://github.com/johnsundell/ink.git
Fetched https://github.com/johnsundell/collectionConcurrencyKit.git from cache (0.35s)
Fetched https://github.com/johnsundell/files.git from cache (0.35s)
Fetched https://github.com/johnsundell/codextended.git from cache (0.41s)
Fetched https://github.com/johnsundell/plot.git from cache (0.41s)
[1/1905] Fetching ink
Fetched https://github.com/johnsundell/ink.git from cache (0.24s)
Computing version for https://github.com/johnsundell/sweep.git
Computed https://github.com/johnsundell/sweep.git at 0.4.0 (1.25s)
Computing version for https://github.com/johnsundell/shellout.git
Computed https://github.com/johnsundell/shellout.git at 2.3.0 (2.30s)
Computing version for https://github.com/johnsundell/collectionConcurrencyKit.git
Computed https://github.com/johnsundell/collectionConcurrencyKit.git at 0.2.0 (0.56s)
Computing version for https://github.com/johnsundell/codextended.git
Computed https://github.com/johnsundell/codextended.git at 0.3.0 (0.55s)
Computing version for https://github.com/johnsundell/files.git
Computed https://github.com/johnsundell/files.git at 4.2.0 (0.58s)
Computing version for https://github.com/johnsundell/ink.git
Computed https://github.com/johnsundell/ink.git at 0.6.0 (1.31s)
Computing version for https://github.com/johnsundell/plot.git
Computed https://github.com/johnsundell/plot.git at 0.14.0 (0.62s)
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/collectionConcurrencyKit.git
Working copy of https://github.com/johnsundell/collectionConcurrencyKit.git resolved at 0.2.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/ink.git
Working copy of https://github.com/johnsundell/ink.git resolved at 0.6.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/publish.git
Working copy of https://github.com/johnsundell/publish.git resolved at 0.9.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/files.git
Working copy of https://github.com/johnsundell/files.git resolved at 4.2.0
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/111] Emitting module Files
[12/111] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
[13/111] Emitting module CollectionConcurrencyKit
[14/112] Compiling Ink HTMLConvertible.swift
[15/112] Compiling Ink Hashable+AnyOf.swift
[16/112] Compiling Ink Heading.swift
[17/112] Compiling Ink HorizontalLine.swift
[18/116] Compiling Ink NamedURLCollection.swift
[19/116] Compiling Ink Paragraph.swift
[20/116] Compiling Ink PlainTextConvertible.swift
[21/116] Compiling Ink Readable.swift
[22/116] Compiling Ink Image.swift
[23/116] Compiling Ink InlineCode.swift
[24/116] Compiling Ink KeyPathPatterns.swift
[25/116] Compiling Ink Link.swift
[26/116] Compiling Ink List.swift
[27/116] Compiling Ink Metadata.swift
[28/116] Compiling Ink Modifiable.swift
[29/116] Compiling Ink ModifierCollection.swift
[31/116] Emitting module Ink
[32/116] Compiling Ink Markdown.swift
[33/116] Compiling Ink MarkdownParser.swift
[34/116] Compiling Ink Modifier.swift
[35/116] Compiling Ink Blockquote.swift
[36/116] Compiling Ink Character+Classification.swift
[37/116] Compiling Ink Character+Escaping.swift
[38/116] Compiling Ink CodeBlock.swift
[39/116] Compiling Ink FormattedText.swift
[40/116] Compiling Ink Fragment.swift
[41/116] Compiling Ink HTML.swift
[42/116] Compiling Ink TextStyle.swift
[43/116] Compiling Ink TextStyleMarker.swift
[44/116] Compiling Ink URL.swift
[45/116] Compiling Ink URLDeclaration.swift
[46/116] Compiling Ink Reader.swift
[47/116] Compiling Ink Require.swift
[48/116] Compiling Ink Substring+Trimming.swift
[49/116] Compiling Ink Table.swift
[50/117] Emitting module ShellOut
[51/117] Compiling ShellOut ShellOut.swift
[52/117] Compiling Files Files.swift
[53/119] Compiling Plot Node.swift
[54/119] Compiling Plot NodeConvertible.swift
[55/119] Compiling Plot Optional+Component.swift
[56/119] Compiling Plot PodcastAttributes.swift
[57/119] Compiling Plot PodcastComponents.swift
[58/119] Compiling Plot PodcastElements.swift
[59/119] Compiling Plot PodcastEpisodeType.swift
[60/119] Compiling Plot PodcastFeed.swift
[68/127] Compiling Plot Language.swift
[69/127] Emitting module Codextended
[70/127] Compiling Codextended Codextended.swift
[80/128] Emitting module Sweep
[81/128] Compiling Sweep Sweep.swift
[83/128] Compiling Plot PodcastMediaType.swift
[84/128] Compiling Plot PodcastType.swift
[85/128] Compiling Plot RSS.swift
[86/128] Compiling Plot RSSAttributes.swift
[87/128] Compiling Plot RSSElements.swift
[88/128] Compiling Plot Renderable.swift
[89/128] Compiling Plot SiteMap.swift
[90/128] Compiling Plot SiteMapChangeFrequency.swift
[91/128] Compiling Plot SiteMapElements.swift
[92/128] Compiling Plot TwitterCardType.swift
[93/128] Compiling Plot URLRepresentable.swift
[94/128] Compiling Plot XML.swift
[95/128] Compiling Plot XMLAttributes.swift
[96/128] Compiling Plot XMLElements.swift
[97/128] Compiling Plot AnyAttribute.swift
[98/128] Compiling Plot AnyElement.swift
[99/129] Emitting module Plot
[122/129] Compiling Plot AnyEnvironmentValue.swift
[123/129] Compiling Plot AnyNode.swift
[124/129] Compiling Plot ElementRenderingBuffer.swift
[125/129] Compiling Plot ElementWrapper.swift
[126/129] Compiling Plot Environment.swift
[127/129] Compiling Plot ModifiedComponent.swift
[128/129] Compiling Plot Renderer.swift
[129/129] Compiling Plot String+Escaping.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] Emitting module Publish
[140/190] Compiling Publish PlotComponents.swift
[141/190] Compiling Publish PlotEnvironmentKeys.swift
[142/190] Compiling Publish PlotModifiers.swift
[143/190] Compiling Publish Plugin.swift
[144/190] Compiling Publish PodcastAuthor.swift
[145/190] Compiling Publish PodcastCompatibleWebsiteItemMetadata.swift
[146/190] Compiling Publish PodcastEpisodeMetadata.swift
[147/190] Compiling Publish PodcastFeedConfiguration.swift
[148/190] Compiling Publish Predicate.swift
[149/190] Compiling Publish PublishedWebsite.swift
[150/190] Compiling Publish PublishingContext.swift
[151/190] Compiling Publish PublishingError.swift
[152/190] Compiling Publish PublishingStep.swift
[153/190] Compiling Publish RSSFeedConfiguration.swift
[154/190] Compiling Publish Section.swift
[155/190] Compiling Publish PodcastError.swift
[156/190] Compiling Publish PodcastFeedGenerator.swift
[157/190] Compiling Publish PublishingPipeline.swift
[158/190] Compiling Publish RSSFeedGenerator.swift
[159/190] Compiling Publish ShellOutError+PublishingErrorConvertible.swift
[160/190] Compiling Publish SiteMapGenerator.swift
[161/190] Compiling Publish String+Normalized.swift
[162/190] Compiling Publish HTMLFileMode.swift
[163/190] Compiling Publish Index.swift
[164/190] Compiling Publish Item.swift
[165/190] Compiling Publish ItemRSSProperties.swift
[166/190] Compiling Publish Location.swift
[167/190] Compiling Publish Mutations.swift
[168/190] Compiling Publish Page.swift
[169/190] Compiling Publish Path.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 File+SwiftPackageFolder.swift
[178/190] Compiling Publish FileIOError.swift
[179/190] Compiling Publish Folder+Group.swift
[180/190] Compiling Publish HTMLGenerator.swift
[181/190] Compiling Publish MarkdownContentFactory.swift
[182/190] Compiling Publish MarkdownFileHandler.swift
[183/190] Compiling Publish MarkdownMetadataDecoder.swift
[184/190] Compiling Publish Theme+Foundation.swift
[185/190] Compiling Publish Theme.swift
[186/190] Compiling Publish Video.swift
[187/190] Compiling Publish Website.swift
[188/190] Compiling Publish Array+Appending.swift
[189/190] Compiling Publish CommandLine+Output.swift
[190/190] Compiling Publish ContentError.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: add '@MainActor' to make var 'output' part of global actor 'MainActor'
   |     `- 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
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/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 |     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[193/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: add '@MainActor' to make var 'data' part of global actor 'MainActor'
   |             `- 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] 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: add '@MainActor' to make var 'output' part of global actor 'MainActor'
   |     `- 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: add '@MainActor' to make var 'data' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | func estimateTime(for string: String, wordsPerMinute: Int) -> ReadingTimeMetadata {
Build complete! (28.64s)
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.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.