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

Failed to build ignorio with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/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/josefdolezal/ignorio.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/josefdolezal/ignorio
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f0fcd1e Remove badges
Cloned https://github.com/josefdolezal/ignorio.git
Revision (git rev-parse @):
f0fcd1e3ffb28aeb917098abd89ac0ea4daba747
SUCCESS checkout https://github.com/josefdolezal/ignorio.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/josefdolezal/ignorio.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/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/apple/swift-argument-parser
[1/11679] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.65s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.1.2 (0.44s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.1.2
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/18] Compiling ArgumentParserToolInfo ToolInfo.swift
[7/18] Emitting module ArgumentParserToolInfo
[8/19] Wrapping AST for ArgumentParserToolInfo for debugging
[10/55] Compiling ArgumentParser NameSpecification.swift
[11/55] Compiling ArgumentParser Option.swift
[12/55] Compiling ArgumentParser OptionGroup.swift
[13/55] Compiling ArgumentParser AsyncParsableCommand.swift
[14/55] Compiling ArgumentParser CommandConfiguration.swift
[15/59] Emitting module ArgumentParser
[16/59] Compiling ArgumentParser Name.swift
[17/59] Compiling ArgumentParser Parsed.swift
[18/59] Compiling ArgumentParser ParsedValues.swift
[19/59] Compiling ArgumentParser ParserError.swift
[20/59] Compiling ArgumentParser SplitArguments.swift
[21/59] Compiling IgnorioKit IgnorioKitError.swift
[22/59] Compiling IgnorioKit HttpClient.swift
/host/spi-builder-workspace/Sources/IgnorioKit/HttpClient.swift:6:23: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'HttpClient' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HttpClient {
   |               `- note: consider making struct 'HttpClient' conform to the 'Sendable' protocol
 4 |     public var get: (_ url: URL) async throws -> Data
 5 |
 6 |     public static let live: HttpClient = .init(
   |                       |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'HttpClient' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'live' 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
 7 |         get: { url in
 8 |             let (data, _) = try await URLSession.shared.data(from: url)
/host/spi-builder-workspace/Sources/IgnorioKit/HttpClient.swift:8:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     public static let live: HttpClient = .init(
 7 |         get: { url in
 8 |             let (data, _) = try await URLSession.shared.data(from: url)
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |             return data
10 |         }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/59] Compiling IgnorioKit UnknownTypesValidator.swift
/host/spi-builder-workspace/Sources/IgnorioKit/ContentValidations/UnknownTypesValidator.swift:11:17: warning: let 'errorRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Default regex matching server error
11 | fileprivate let errorRegex = try! NSRegularExpression(pattern: "^#!! ERROR: ([^ ]+).*$", options: [.anchorsMatchLines])
   |                 `- warning: let 'errorRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Validates the server response for valid types.
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
 1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
   |            `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/IgnorioKit/ContentValidations/UnknownTypesValidator.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 9 |
10 | // Default regex matching server error
11 | fileprivate let errorRegex = try! NSRegularExpression(pattern: "^#!! ERROR: ([^ ]+).*$", options: [.anchorsMatchLines])
   |                 |- note: annotate 'errorRegex' 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
12 |
13 | /// Validates the server response for valid types.
[24/59] Compiling IgnorioKit GitIgnoreIOService.swift
/host/spi-builder-workspace/Sources/IgnorioKit/HttpClient.swift:6:23: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'HttpClient' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HttpClient {
   |               `- note: consider making struct 'HttpClient' conform to the 'Sendable' protocol
 4 |     public var get: (_ url: URL) async throws -> Data
 5 |
 6 |     public static let live: HttpClient = .init(
   |                       |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'HttpClient' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'live' 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
 7 |         get: { url in
 8 |             let (data, _) = try await URLSession.shared.data(from: url)
[25/59] Emitting module IgnorioKit
/host/spi-builder-workspace/Sources/IgnorioKit/ContentValidations/UnknownTypesValidator.swift:11:17: warning: let 'errorRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Default regex matching server error
11 | fileprivate let errorRegex = try! NSRegularExpression(pattern: "^#!! ERROR: ([^ ]+).*$", options: [.anchorsMatchLines])
   |                 `- warning: let 'errorRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// Validates the server response for valid types.
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
 1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
   |            `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/IgnorioKit/ContentValidations/UnknownTypesValidator.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 9 |
10 | // Default regex matching server error
11 | fileprivate let errorRegex = try! NSRegularExpression(pattern: "^#!! ERROR: ([^ ]+).*$", options: [.anchorsMatchLines])
   |                 |- note: annotate 'errorRegex' 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
12 |
13 | /// Validates the server response for valid types.
/host/spi-builder-workspace/Sources/IgnorioKit/HttpClient.swift:6:23: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'HttpClient' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HttpClient {
   |               `- note: consider making struct 'HttpClient' conform to the 'Sendable' protocol
 4 |     public var get: (_ url: URL) async throws -> Data
 5 |
 6 |     public static let live: HttpClient = .init(
   |                       |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'HttpClient' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'live' 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
 7 |         get: { url in
 8 |             let (data, _) = try await URLSession.shared.data(from: url)
/host/spi-builder-workspace/Sources/IgnorioKit/HttpClient.swift:8:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     public static let live: HttpClient = .init(
 7 |         get: { url in
 8 |             let (data, _) = try await URLSession.shared.data(from: url)
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |             return data
10 |         }
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.