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 master (531dd1), with Swift 6.1 for Linux on 27 Apr 2025 07:18:22 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.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: 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/alexito4/ReadingTimePublishPlugin
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 531dd14 Update README.md
Cloned https://github.com/alexito4/ReadingTimePublishPlugin.git
Revision (git rev-parse @):
531dd144784e7e623d45a01dafdf4dd76c3349f8
SUCCESS checkout https://github.com/alexito4/ReadingTimePublishPlugin.git at master
========================================
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-0":/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.46s)
Computing version for https://github.com/johnsundell/publish.git
Computed https://github.com/johnsundell/publish.git at 0.9.0 (1.57s)
Fetching https://github.com/johnsundell/shellout.git
Fetching https://github.com/johnsundell/sweep.git
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/codextended.git
[1/84] Fetching collectionconcurrencykit
[85/200] Fetching collectionconcurrencykit, sweep
[91/1160] Fetching collectionconcurrencykit, sweep, shellout
[293/1341] Fetching collectionconcurrencykit, sweep, shellout, codextended
[507/3427] Fetching collectionconcurrencykit, sweep, shellout, codextended, plot
[1457/4663] Fetching collectionconcurrencykit, sweep, shellout, codextended, plot, files
Fetched https://github.com/johnsundell/collectionConcurrencyKit.git from cache (0.50s)
[1863/4579] Fetching sweep, shellout, codextended, plot, files
Fetching https://github.com/johnsundell/ink.git
Fetched https://github.com/johnsundell/codextended.git from cache (0.51s)
[2919/4398] Fetching sweep, shellout, plot, files
Fetched https://github.com/johnsundell/shellout.git from cache (0.62s)
[1236/1236] Fetching files
Fetched https://github.com/johnsundell/sweep.git from cache (0.74s)
Fetched https://github.com/johnsundell/plot.git from cache (0.74s)
Fetched https://github.com/johnsundell/files.git from cache (0.74s)
[1/1905] Fetching ink
Fetched https://github.com/johnsundell/ink.git from cache (0.47s)
Computing version for https://github.com/johnsundell/sweep.git
Computed https://github.com/johnsundell/sweep.git at 0.4.0 (2.04s)
Computing version for https://github.com/johnsundell/shellout.git
Computed https://github.com/johnsundell/shellout.git at 2.3.0 (3.93s)
Computing version for https://github.com/johnsundell/collectionConcurrencyKit.git
Computed https://github.com/johnsundell/collectionConcurrencyKit.git at 0.2.0 (1.79s)
Computing version for https://github.com/johnsundell/codextended.git
Computed https://github.com/johnsundell/codextended.git at 0.3.0 (1.11s)
Computing version for https://github.com/johnsundell/files.git
Computed https://github.com/johnsundell/files.git at 4.2.0 (1.02s)
Computing version for https://github.com/johnsundell/ink.git
Computed https://github.com/johnsundell/ink.git at 0.6.0 (0.80s)
Computing version for https://github.com/johnsundell/plot.git
Computed https://github.com/johnsundell/plot.git at 0.14.0 (0.75s)
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/ink.git
Working copy of https://github.com/johnsundell/ink.git resolved at 0.6.0
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/shellout.git
Working copy of https://github.com/johnsundell/shellout.git resolved at 2.3.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/codextended.git
Working copy of https://github.com/johnsundell/codextended.git resolved at 0.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 Codextended
[12/111] Emitting module Ink
[13/115] Emitting module Plot
[14/123] Emitting module CollectionConcurrencyKit
[15/123] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
[16/124] Compiling Ink Image.swift
[17/124] Compiling Ink InlineCode.swift
[18/124] Compiling Ink KeyPathPatterns.swift
[19/124] Compiling Ink Link.swift
[20/124] Compiling Ink HTMLConvertible.swift
[21/124] Compiling Ink Hashable+AnyOf.swift
[22/124] Compiling Ink Heading.swift
[23/124] Compiling Ink HorizontalLine.swift
[24/124] Compiling Ink TextStyle.swift
[25/124] Compiling Ink TextStyleMarker.swift
[26/124] Compiling Ink URL.swift
[27/124] Compiling Ink URLDeclaration.swift
[29/124] Compiling Ink Character+Escaping.swift
[30/124] Compiling Ink CodeBlock.swift
[31/124] Compiling Ink FormattedText.swift
[32/124] Compiling Ink Fragment.swift
[33/124] Compiling Ink HTML.swift
[34/124] Compiling Plot Attribute.swift
[35/124] Compiling Plot Component.swift
[36/124] Compiling Plot ComponentAttributes.swift
[37/124] Compiling Plot ComponentBuilder.swift
[38/124] Compiling Plot ComponentContainer.swift
[39/124] Compiling Plot AnyEnvironmentValue.swift
[40/124] Compiling Plot AnyNode.swift
[41/124] Compiling Plot ElementRenderingBuffer.swift
[42/124] Compiling Plot ElementWrapper.swift
[43/124] Compiling Plot Environment.swift
[44/124] Compiling Plot ModifiedComponent.swift
[45/124] Compiling Plot Renderer.swift
[46/124] Compiling Plot String+Escaping.swift
[47/124] Compiling Ink Reader.swift
[48/124] Compiling Ink Require.swift
[49/124] Compiling Ink Substring+Trimming.swift
[50/124] Compiling Ink Table.swift
[55/124] Compiling Sweep Sweep.swift
[56/124] Emitting module Sweep
[57/124] Emitting module ShellOut
[58/124] Compiling ShellOut ShellOut.swift
[59/126] Compiling Ink NamedURLCollection.swift
[60/126] Compiling Ink Paragraph.swift
[61/126] Compiling Ink PlainTextConvertible.swift
[62/126] Compiling Ink Readable.swift
[63/126] Compiling Ink List.swift
[64/126] Compiling Ink Metadata.swift
[65/126] Compiling Ink Modifiable.swift
[66/126] Compiling Ink ModifierCollection.swift
[71/127] Compiling Plot SiteMapElements.swift
[72/127] Compiling Plot TwitterCardType.swift
[73/127] Compiling Plot URLRepresentable.swift
[74/127] Compiling Plot XML.swift
[75/127] Compiling Plot XMLAttributes.swift
[76/127] Compiling Plot XMLElements.swift
[77/127] Compiling Plot AnyAttribute.swift
[78/127] Compiling Plot AnyElement.swift
[79/127] Compiling Plot PodcastMediaType.swift
[80/127] Compiling Plot PodcastType.swift
[81/127] Compiling Plot RSS.swift
[82/127] Compiling Plot RSSAttributes.swift
[83/127] Compiling Plot RSSElements.swift
[84/127] Compiling Plot Renderable.swift
[85/127] Compiling Plot SiteMap.swift
[86/127] Compiling Plot SiteMapChangeFrequency.swift
[87/127] Compiling Codextended Codextended.swift
[96/128] Compiling Plot DocumentEncoding.swift
[97/128] Compiling Plot Element.swift
[98/128] Compiling Plot ElementClosingMode.swift
[99/128] Compiling Plot ElementComponent.swift
[100/128] Compiling Plot ElementDefinition.swift
[101/128] Compiling Plot EmptyComponent.swift
[102/128] Compiling Plot EnvironmentKey.swift
[103/128] Compiling Plot EnvironmentValue.swift
[104/128] Compiling Plot HTML.swift
[123/129] Emitting module Files
[124/129] Compiling Files Files.swift
[131/183] Emitting module Publish
[132/190] Compiling Publish PlotComponents.swift
[133/190] Compiling Publish PlotEnvironmentKeys.swift
[134/190] Compiling Publish PlotModifiers.swift
[135/190] Compiling Publish Plugin.swift
[136/190] Compiling Publish PodcastAuthor.swift
[137/190] Compiling Publish PodcastCompatibleWebsiteItemMetadata.swift
[138/190] Compiling Publish PodcastEpisodeMetadata.swift
[139/190] Compiling Publish PodcastFeedConfiguration.swift
[140/190] Compiling Publish AnyItem.swift
[141/190] Compiling Publish Audio.swift
[142/190] Compiling Publish Content.swift
[143/190] Compiling Publish ContentProtocol.swift
[144/190] Compiling Publish DeploymentMethod.swift
[145/190] Compiling Publish Favicon.swift
[146/190] Compiling Publish FeedConfiguration.swift
[147/190] Compiling Publish HTMLFactory.swift
[148/190] Compiling Publish HTMLFileMode.swift
[149/190] Compiling Publish Index.swift
[150/190] Compiling Publish Item.swift
[151/190] Compiling Publish ItemRSSProperties.swift
[152/190] Compiling Publish Location.swift
[153/190] Compiling Publish Mutations.swift
[154/190] Compiling Publish Page.swift
[155/190] Compiling Publish Path.swift
[156/190] Compiling Publish SectionMap.swift
[157/190] Compiling Publish SortOrder.swift
[158/190] Compiling Publish StringWrapper.swift
[159/190] Compiling Publish Tag.swift
[160/190] Compiling Publish TagDetailsPage.swift
[161/190] Compiling Publish TagHTMLConfiguration.swift
[162/190] Compiling Publish TagListPage.swift
[163/190] Compiling Publish Theme+Foundation.swift
[164/190] Compiling Publish Theme.swift
[165/190] Compiling Publish Video.swift
[166/190] Compiling Publish Website.swift
[167/190] Compiling Publish Array+Appending.swift
[168/190] Compiling Publish CommandLine+Output.swift
[169/190] Compiling Publish ContentError.swift
[170/190] Compiling Publish File+SwiftPackageFolder.swift
[171/190] Compiling Publish FileIOError.swift
[172/190] Compiling Publish Folder+Group.swift
[173/190] Compiling Publish HTMLGenerator.swift
[174/190] Compiling Publish MarkdownContentFactory.swift
[175/190] Compiling Publish MarkdownFileHandler.swift
[176/190] Compiling Publish MarkdownMetadataDecoder.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] 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 {
[193/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.  */
[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: 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! (33.05s)
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.