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, reference master (531dd1), with Swift 6.0 for Linux on 2 Nov 2024 20:40:45 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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: 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:  $PWD
https://github.com/alexito4/ReadingTimePublishPlugin.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.53s)
Fetching https://github.com/johnsundell/codextended.git
Fetching https://github.com/johnsundell/collectionConcurrencyKit.git
Fetching https://github.com/johnsundell/sweep.git
Fetching https://github.com/johnsundell/files.git
Fetching https://github.com/johnsundell/shellout.git
Fetching https://github.com/johnsundell/plot.git
[1/181] Fetching codextended
[182/297] Fetching codextended, sweep
[298/380] Fetching codextended, sweep, collectionconcurrencykit
[381/1611] Fetching codextended, sweep, collectionconcurrencykit, files
[418/2571] Fetching codextended, sweep, collectionconcurrencykit, files, shellout
[2572/4657] Fetching codextended, sweep, collectionconcurrencykit, files, shellout, plot
Fetched https://github.com/johnsundell/collectionConcurrencyKit.git from cache (0.25s)
Fetching https://github.com/johnsundell/ink.git
Fetched https://github.com/johnsundell/codextended.git from cache (0.27s)
Fetched https://github.com/johnsundell/files.git from cache (0.27s)
Fetched https://github.com/johnsundell/sweep.git from cache (0.27s)
Fetched https://github.com/johnsundell/shellout.git from cache (0.32s)
Fetched https://github.com/johnsundell/plot.git from cache (0.32s)
[1/1905] Fetching ink
Fetched https://github.com/johnsundell/ink.git from cache (0.21s)
Computing version for https://github.com/johnsundell/sweep.git
Computed https://github.com/johnsundell/sweep.git at 0.4.0 (0.48s)
Computing version for https://github.com/johnsundell/shellout.git
Computed https://github.com/johnsundell/shellout.git at 2.3.0 (2.20s)
Computing version for https://github.com/johnsundell/collectionConcurrencyKit.git
Computed https://github.com/johnsundell/collectionConcurrencyKit.git at 0.2.0 (0.50s)
Computing version for https://github.com/johnsundell/codextended.git
Computed https://github.com/johnsundell/codextended.git at 0.3.0 (0.51s)
Computing version for https://github.com/johnsundell/files.git
Computed https://github.com/johnsundell/files.git at 4.2.0 (0.50s)
Computing version for https://github.com/johnsundell/ink.git
Computed https://github.com/johnsundell/ink.git at 0.6.0 (0.49s)
Computing version for https://github.com/johnsundell/plot.git
Computed https://github.com/johnsundell/plot.git at 0.14.0 (0.51s)
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/ink.git
Working copy of https://github.com/johnsundell/ink.git resolved at 0.6.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/codextended.git
Working copy of https://github.com/johnsundell/codextended.git resolved at 0.3.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/plot.git
Working copy of https://github.com/johnsundell/plot.git resolved at 0.14.0
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/111] Emitting module Ink
[12/115] Emitting module Plot
[13/123] Emitting module CollectionConcurrencyKit
[14/123] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
[15/124] Compiling Ink Image.swift
[16/124] Compiling Ink InlineCode.swift
[17/124] Compiling Ink KeyPathPatterns.swift
[18/124] Compiling Ink Link.swift
[19/124] Compiling Ink List.swift
[20/124] Compiling Ink Metadata.swift
[21/124] Compiling Ink Modifiable.swift
[22/124] Compiling Ink ModifierCollection.swift
[23/124] Compiling Ink TextStyle.swift
[24/124] Compiling Ink TextStyleMarker.swift
[25/124] Compiling Ink URL.swift
[26/124] Compiling Ink URLDeclaration.swift
[27/124] Compiling Plot Attribute.swift
[28/124] Compiling Plot Component.swift
[29/124] Compiling Plot ComponentAttributes.swift
[30/124] Compiling Plot ComponentBuilder.swift
[31/124] Compiling Plot ComponentContainer.swift
[32/124] Compiling Plot ComponentGroup.swift
[33/124] Compiling Plot ControlFlow.swift
[34/124] Compiling Plot Directionality.swift
[35/124] Compiling Plot Document.swift
[36/124] Compiling Plot DocumentEncoding.swift
[38/124] Compiling Plot Element.swift
[39/124] Compiling Plot ElementClosingMode.swift
[40/124] Compiling Plot ElementComponent.swift
[41/124] Compiling Plot ElementDefinition.swift
[42/124] Emitting module Sweep
[43/124] Compiling Sweep Sweep.swift
[44/125] Emitting module Codextended
[45/125] Compiling Codextended Codextended.swift
[46/125] Compiling Plot SiteMapElements.swift
[47/125] Compiling Plot TwitterCardType.swift
[48/125] Compiling Plot URLRepresentable.swift
[49/125] Compiling Plot XML.swift
[50/125] Compiling Plot XMLAttributes.swift
[51/125] Compiling Plot XMLElements.swift
[52/125] Compiling Plot AnyAttribute.swift
[53/125] Compiling Plot AnyElement.swift
[54/126] Emitting module ShellOut
[55/126] Compiling ShellOut ShellOut.swift
[56/126] Compiling Ink NamedURLCollection.swift
[57/126] Compiling Ink Paragraph.swift
[58/126] Compiling Ink PlainTextConvertible.swift
[59/126] Compiling Ink Readable.swift
[60/126] Compiling Ink Reader.swift
[61/126] Compiling Ink Require.swift
[62/126] Compiling Ink Substring+Trimming.swift
[63/126] Compiling Ink Table.swift
[73/127] Compiling Plot PodcastMediaType.swift
[74/127] Compiling Plot PodcastType.swift
[75/127] Compiling Plot RSS.swift
[76/127] Compiling Plot RSSAttributes.swift
[77/127] Compiling Plot RSSElements.swift
[78/127] Compiling Plot Renderable.swift
[79/127] Compiling Plot SiteMap.swift
[80/127] Compiling Plot SiteMapChangeFrequency.swift
[88/128] Compiling Plot Language.swift
[89/128] Compiling Plot Node.swift
[90/128] Compiling Plot NodeConvertible.swift
[91/128] Compiling Plot Optional+Component.swift
[92/128] Compiling Plot PodcastAttributes.swift
[93/128] Compiling Plot PodcastComponents.swift
[94/128] Compiling Plot PodcastElements.swift
[95/128] Compiling Plot PodcastEpisodeType.swift
[96/128] Compiling Plot PodcastFeed.swift
[97/128] Compiling Plot AnyEnvironmentValue.swift
[98/128] Compiling Plot AnyNode.swift
[99/128] Compiling Plot ElementRenderingBuffer.swift
[100/128] Compiling Plot ElementWrapper.swift
[101/128] Compiling Plot Environment.swift
[102/128] Compiling Plot ModifiedComponent.swift
[103/128] Compiling Plot Renderer.swift
[104/128] Compiling Plot String+Escaping.swift
[105/128] Emitting module Files
[106/128] Compiling Files Files.swift
[131/183] Compiling Publish SectionMap.swift
[132/183] Compiling Publish SortOrder.swift
[133/183] Compiling Publish StringWrapper.swift
[134/183] Compiling Publish Tag.swift
[135/183] Compiling Publish TagDetailsPage.swift
[136/183] Compiling Publish TagHTMLConfiguration.swift
[137/183] Compiling Publish TagListPage.swift
[138/190] Emitting module Publish
[139/190] Compiling Publish AnyItem.swift
[140/190] Compiling Publish Audio.swift
[141/190] Compiling Publish Content.swift
[142/190] Compiling Publish ContentProtocol.swift
[143/190] Compiling Publish DeploymentMethod.swift
[144/190] Compiling Publish Favicon.swift
[145/190] Compiling Publish FeedConfiguration.swift
[146/190] Compiling Publish HTMLFactory.swift
[147/190] Compiling Publish HTMLFileMode.swift
[148/190] Compiling Publish Index.swift
[149/190] Compiling Publish Item.swift
[150/190] Compiling Publish ItemRSSProperties.swift
[151/190] Compiling Publish Location.swift
[152/190] Compiling Publish Mutations.swift
[153/190] Compiling Publish Page.swift
[154/190] Compiling Publish Path.swift
[155/190] Compiling Publish PlotComponents.swift
[156/190] Compiling Publish PlotEnvironmentKeys.swift
[157/190] Compiling Publish PlotModifiers.swift
[158/190] Compiling Publish Plugin.swift
[159/190] Compiling Publish PodcastAuthor.swift
[160/190] Compiling Publish PodcastCompatibleWebsiteItemMetadata.swift
[161/190] Compiling Publish PodcastEpisodeMetadata.swift
[162/190] Compiling Publish PodcastFeedConfiguration.swift
[163/190] Compiling Publish Predicate.swift
[164/190] Compiling Publish PublishedWebsite.swift
[165/190] Compiling Publish PublishingContext.swift
[166/190] Compiling Publish PublishingError.swift
[167/190] Compiling Publish PublishingStep.swift
[168/190] Compiling Publish RSSFeedConfiguration.swift
[169/190] Compiling Publish Section.swift
[170/190] Compiling Publish Theme+Foundation.swift
[171/190] Compiling Publish Theme.swift
[172/190] Compiling Publish Video.swift
[173/190] Compiling Publish Website.swift
[174/190] Compiling Publish Array+Appending.swift
[175/190] Compiling Publish CommandLine+Output.swift
[176/190] Compiling Publish ContentError.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 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! (43.45s)
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.