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 twitter-text, reference 0.0.3 (b96594), with Swift 6.0 for Linux on 2 Nov 2024 20:44:01 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/nysander/twitter-text.git
Reference: 0.0.3
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/nysander/twitter-text
 * tag               0.0.3      -> FETCH_HEAD
HEAD is now at b965940 Merge pull request #15 from Kyome22/solve-config-path-and-access-control
Cloned https://github.com/nysander/twitter-text.git
Revision (git rev-parse @):
b96594027464bf5ea0fe66d24666c878b94d6a15
SUCCESS checkout https://github.com/nysander/twitter-text.git at 0.0.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nysander/twitter-text.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/nysander/UnicodeURL.git
[1/125] Fetching unicodeurl
Fetched https://github.com/nysander/UnicodeURL.git from cache (0.15s)
Computing version for https://github.com/nysander/UnicodeURL.git
Computed https://github.com/nysander/UnicodeURL.git at 0.1.0 (0.44s)
Creating working copy for https://github.com/nysander/UnicodeURL.git
Working copy of https://github.com/nysander/UnicodeURL.git resolved at 0.1.0
Building for debugging...
[0/11] Copying v3.json
[0/11] Copying v1.json
[0/11] Copying v2.json
[0/11] Write sources
[5/11] Compiling IDNSDK toxxx.c
[6/11] Compiling IDNSDK puny.c
[7/11] Compiling IDNSDK race.c
[8/11] Compiling IDNSDK util.c
[9/11] Compiling IDNSDK nameprep.c
[10/11] Write swift-version-24593BA9C3E375BF.txt
[12/16] Compiling UnicodeURL UnicodeURL.swift
[13/16] Emitting module UnicodeURL
[14/16] Compiling UnicodeURL String+Unicode.swift
[15/16] Compiling UnicodeURL ConvertError.swift
[16/16] Compiling UnicodeURL URL+Unicode.swift
[18/29] Compiling TwitterText WeigthedRange.swift
[19/30] Compiling TwitterText ValidURLGroup.swift
[20/30] Compiling TwitterText resource_bundle_accessor.swift
[21/30] Compiling TwitterText Configuration.swift
[22/30] Compiling TwitterText ConfigurationType.swift
[23/30] Emitting module TwitterText
/host/spi-builder-workspace/Sources/TwitterText/Parser.swift:10:23: warning: static property 'defaultParser' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | public class Parser {
 10 |     public static var defaultParser = Parser(with: Configuration.configuration(fromType: ConfigurationType.v3)!)
    |                       |- warning: static property 'defaultParser' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultParser' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultParser' 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
 11 |
 12 |     public static func setDefaultParser(with configuration: Configuration) {
[24/30] Compiling TwitterText Entity.swift
[25/30] Compiling TwitterText EntityType.swift
[26/30] Compiling TwitterText Parser.swift
/host/spi-builder-workspace/Sources/TwitterText/Parser.swift:10:23: warning: static property 'defaultParser' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | public class Parser {
 10 |     public static var defaultParser = Parser(with: Configuration.configuration(fromType: ConfigurationType.v3)!)
    |                       |- warning: static property 'defaultParser' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultParser' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultParser' 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
 11 |
 12 |     public static func setDefaultParser(with configuration: Configuration) {
[27/30] Compiling TwitterText Regexp.swift
/host/spi-builder-workspace/Sources/TwitterText/Parser.swift:10:23: warning: static property 'defaultParser' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | public class Parser {
 10 |     public static var defaultParser = Parser(with: Configuration.configuration(fromType: ConfigurationType.v3)!)
    |                       |- warning: static property 'defaultParser' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultParser' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultParser' 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
 11 |
 12 |     public static func setDefaultParser(with configuration: Configuration) {
[28/30] Compiling TwitterText String+Emoji.swift
[29/30] Compiling TwitterText ParseResults.swift
[30/30] Compiling TwitterText TwitterText.swift
Build complete! (13.58s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "unicodeurl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nysander/UnicodeURL.git"
    }
  ],
  "manifest_display_name" : "twitter-text",
  "name" : "twitter-text",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TwitterText",
      "targets" : [
        "TwitterText"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TwitterTextTests",
      "module_type" : "SwiftTarget",
      "name" : "TwitterTextTests",
      "path" : "Tests/TwitterTextTests",
      "sources" : [
        "TwitterTextEmojiTests.swift",
        "TwitterTextTests.swift"
      ],
      "target_dependencies" : [
        "TwitterText"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TwitterText",
      "module_type" : "SwiftTarget",
      "name" : "TwitterText",
      "path" : "Sources/TwitterText",
      "product_dependencies" : [
        "UnicodeURL"
      ],
      "product_memberships" : [
        "TwitterText"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/TwitterText/config/v1.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/TwitterText/config/v2.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/TwitterText/config/v3.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Configuration.swift",
        "ConfigurationType.swift",
        "Entity.swift",
        "EntityType.swift",
        "Extensions/String+Emoji.swift",
        "ParseResults.swift",
        "Parser.swift",
        "Regexp.swift",
        "TwitterText.swift",
        "ValidURLGroup.swift",
        "WeigthedRange.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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.