This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of ReadingTimePublishPlugin with Swift 6.0 for Linux.

Swift 6 data race errors: 2

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/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.0
Building package at path:  $workDir
https://github.com/alexito4/ReadingTimePublishPlugin.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
Fetching https://github.com/johnsundell/files.git
Fetching https://github.com/johnsundell/shellout.git
Fetching https://github.com/johnsundell/plot.git
Fetching https://github.com/johnsundell/publish.git
Fetching https://github.com/johnsundell/codextended.git
Fetching https://github.com/johnsundell/collectionConcurrencyKit.git
[1/181] Fetching codextended
[83/264] Fetching codextended, collectionconcurrencykit
[265/1495] Fetching codextended, collectionconcurrencykit, files
[499/2451] Fetching codextended, collectionconcurrencykit, files, shellout
[2452/5333] Fetching codextended, collectionconcurrencykit, files, shellout, publish
[2453/7418] Fetching codextended, collectionconcurrencykit, files, shellout, publish, plot
Fetched https://github.com/johnsundell/shellout.git from cache (0.30s)
Fetching https://github.com/johnsundell/ink.git
Fetched https://github.com/johnsundell/collectionConcurrencyKit.git from cache (0.36s)
Fetching https://github.com/johnsundell/sweep.git
Fetched https://github.com/johnsundell/files.git from cache (0.36s)
Fetched https://github.com/johnsundell/codextended.git from cache (0.37s)
Fetched https://github.com/johnsundell/plot.git from cache (0.37s)
Fetched https://github.com/johnsundell/publish.git from cache (0.37s)
Computing version for https://github.com/johnsundell/publish.git
[1/1905] Fetching ink
[1906/2021] Fetching ink, sweep
Fetched https://github.com/johnsundell/ink.git from cache (0.27s)
[29/116] Fetching sweep
Fetched https://github.com/johnsundell/sweep.git from cache (0.25s)
Computed https://github.com/johnsundell/publish.git at 0.9.0 (0.63s)
Computing version for https://github.com/johnsundell/collectionConcurrencyKit.git
Computed https://github.com/johnsundell/collectionConcurrencyKit.git at 0.2.0 (0.63s)
Computing version for https://github.com/johnsundell/sweep.git
Computed https://github.com/johnsundell/sweep.git at 0.4.0 (0.63s)
Computing version for https://github.com/johnsundell/shellout.git
Computed https://github.com/johnsundell/shellout.git at 2.3.0 (1.41s)
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.52s)
Computing version for https://github.com/johnsundell/plot.git
Computed https://github.com/johnsundell/plot.git at 0.11.0 (0.61s)
Computing version for https://github.com/johnsundell/ink.git
Computed https://github.com/johnsundell/ink.git at 0.5.1 (2.23s)
Creating working copy for https://github.com/johnsundell/plot.git
Working copy of https://github.com/johnsundell/plot.git resolved at 0.11.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/sweep.git
Working copy of https://github.com/johnsundell/sweep.git resolved at 0.4.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
Creating working copy for https://github.com/johnsundell/ink.git
Working copy of https://github.com/johnsundell/ink.git resolved at 0.5.1
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/109] Emitting module Codextended
[12/109] Emitting module CollectionConcurrencyKit
[13/109] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
[15/110] Compiling Plot HTMLAnchorTarget.swift
[16/110] Compiling Plot HTMLAttributes.swift
[17/110] Compiling Plot HTMLAudioFormat.swift
[18/110] Compiling Plot HTMLButtonType.swift
[19/114] Compiling Plot ControlFlow.swift
[20/114] Compiling Plot Document.swift
[21/114] Compiling Plot DocumentEncoding.swift
[22/114] Compiling Plot HTMLAnchorRelationship.swift
[23/114] Compiling Plot ComponentAttributes.swift
[24/114] Compiling Plot ComponentBuilder.swift
[25/114] Compiling Plot ComponentContainer.swift
[26/114] Compiling Plot ComponentGroup.swift
[27/114] Compiling Plot EnvironmentKey.swift
[28/114] Compiling Plot EnvironmentValue.swift
[29/114] Compiling Plot HTML.swift
[30/114] Compiling Plot Attribute.swift
[31/114] Compiling Plot Component.swift
[32/114] Compiling Plot Element.swift
[33/114] Compiling Plot ElementClosingMode.swift
[34/114] Compiling Plot ElementComponent.swift
[35/114] Compiling Plot ElementDefinition.swift
[36/114] Compiling Plot EmptyComponent.swift
[37/114] Emitting module Ink
[38/114] Compiling Ink TextStyle.swift
[39/114] Compiling Ink TextStyleMarker.swift
[40/114] Compiling Ink URL.swift
[41/114] Compiling Ink URLDeclaration.swift
[42/114] Compiling Plot HTMLComponents.swift
[43/114] Compiling Plot HTMLElements.swift
[44/114] Compiling Plot HTMLFormContentType.swift
[45/114] Compiling Plot SiteMapElements.swift
[46/114] Compiling Plot TwitterCardType.swift
[47/114] Compiling Plot URLRepresentable.swift
[48/114] Compiling Plot XML.swift
[49/114] Compiling Plot XMLAttributes.swift
[58/123] Compiling Codextended Codextended.swift
[59/123] Emitting module Sweep
[60/123] Compiling Sweep Sweep.swift
[67/124] Emitting module ShellOut
[70/124] Compiling ShellOut ShellOut.swift
[72/124] Compiling Plot PodcastMediaType.swift
[73/124] Compiling Plot PodcastType.swift
[74/124] Compiling Plot RSS.swift
[75/124] Compiling Plot RSSAttributes.swift
[76/124] Compiling Plot RSSElements.swift
[77/124] Compiling Plot Renderable.swift
[78/124] Compiling Plot SiteMap.swift
[79/124] Compiling Plot SiteMapChangeFrequency.swift
[88/125] Emitting module Files
[89/125] Compiling Files Files.swift
[91/126] Compiling Plot HTMLFormMethod.swift
[92/126] Compiling Plot HTMLInputType.swift
[93/126] Compiling Plot HTMLLinkRelationship.swift
[94/126] Compiling Plot HTMLListStyle.swift
[95/126] Compiling Plot HTMLVideoFormat.swift
[96/126] Compiling Plot HTMLViewportWidthMode.swift
[97/126] Compiling Plot Indentation.swift
[98/126] Compiling Plot Language.swift
[100/126] Compiling Plot NodeConvertible.swift
[101/126] Compiling Plot Optional+Component.swift
[102/126] Compiling Plot PodcastAttributes.swift
[103/126] Compiling Plot PodcastComponents.swift
[104/126] Compiling Plot PodcastElements.swift
[105/126] Compiling Plot PodcastEpisodeType.swift
[106/126] Compiling Plot PodcastFeed.swift
[109/127] Emitting module Plot
[120/127] Compiling Plot AnyEnvironmentValue.swift
[121/127] Compiling Plot AnyNode.swift
[122/127] Compiling Plot ElementRenderingBuffer.swift
[123/127] Compiling Plot ElementWrapper.swift
[124/127] Compiling Plot Environment.swift
[125/127] Compiling Plot ModifiedComponent.swift
[126/127] Compiling Plot Renderer.swift
[127/127] Compiling Plot String+Escaping.swift
[129/181] Compiling Publish AnyItem.swift
[130/181] Compiling Publish Audio.swift
[131/181] Compiling Publish Content.swift
[132/181] Compiling Publish ContentProtocol.swift
[133/181] Compiling Publish DeploymentMethod.swift
[134/181] Compiling Publish Favicon.swift
[135/181] Compiling Publish FeedConfiguration.swift
[136/181] Compiling Publish HTMLFactory.swift
[137/188] Compiling Publish HTMLFileMode.swift
[138/188] Compiling Publish Index.swift
[139/188] Compiling Publish Item.swift
[140/188] Compiling Publish ItemRSSProperties.swift
[141/188] Compiling Publish Location.swift
[142/188] Compiling Publish Mutations.swift
[143/188] Compiling Publish Page.swift
[144/188] Compiling Publish Path.swift
[145/188] Emitting module Publish
[146/188] Compiling Publish Theme+Foundation.swift
[147/188] Compiling Publish Theme.swift
[148/188] Compiling Publish Video.swift
[149/188] Compiling Publish Website.swift
[150/188] Compiling Publish Array+Appending.swift
[151/188] Compiling Publish CommandLine+Output.swift
[152/188] Compiling Publish ContentError.swift
[153/188] Compiling Publish PlotComponents.swift
[154/188] Compiling Publish PlotEnvironmentKeys.swift
[155/188] Compiling Publish PlotModifiers.swift
[156/188] Compiling Publish Plugin.swift
[157/188] Compiling Publish PodcastAuthor.swift
[158/188] Compiling Publish PodcastCompatibleWebsiteItemMetadata.swift
[159/188] Compiling Publish PodcastEpisodeMetadata.swift
[160/188] Compiling Publish PodcastFeedConfiguration.swift
[161/188] Compiling Publish Predicate.swift
[162/188] Compiling Publish PublishedWebsite.swift
[163/188] Compiling Publish PublishingContext.swift
[164/188] Compiling Publish PublishingError.swift
[165/188] Compiling Publish PublishingStep.swift
[166/188] Compiling Publish RSSFeedConfiguration.swift
[167/188] Compiling Publish Section.swift
[168/188] Compiling Publish SectionMap.swift
[169/188] Compiling Publish SortOrder.swift
[170/188] Compiling Publish StringWrapper.swift
[171/188] Compiling Publish Tag.swift
[172/188] Compiling Publish TagDetailsPage.swift
[173/188] Compiling Publish TagHTMLConfiguration.swift
[174/188] Compiling Publish TagListPage.swift
[175/188] Compiling Publish File+SwiftPackageFolder.swift
[176/188] Compiling Publish FileIOError.swift
[177/188] Compiling Publish Folder+Group.swift
[178/188] Compiling Publish HTMLGenerator.swift
[179/188] Compiling Publish MarkdownContentFactory.swift
[180/188] Compiling Publish MarkdownFileHandler.swift
[181/188] Compiling Publish MarkdownMetadataDecoder.swift
[182/188] Compiling Publish PodcastError.swift
[183/188] Compiling Publish PodcastFeedGenerator.swift
[184/188] Compiling Publish PublishingPipeline.swift
[185/188] Compiling Publish RSSFeedGenerator.swift
[186/188] Compiling Publish ShellOutError+PublishingErrorConvertible.swift
[187/188] Compiling Publish SiteMapGenerator.swift
[188/188] Compiling Publish String+Normalized.swift
[190/192] 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 non-isolated 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 non-isolated 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
[191/192] Compiling ReadingTimePublishPlugin ReadingTime.swift
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/ReadingTime.swift:42:13: warning: var 'data' is not concurrency-safe because it is non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 |
[192/192] Emitting module ReadingTimePublishPlugin
/host/spi-builder-workspace/Sources/ReadingTimePublishPlugin/CommandLine+Output.swift:8:5: warning: var 'output' is not concurrency-safe because it is non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 {
Build complete! (45.06s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.