Build Information
Successful build of PositionalDateComponentsFormatter, reference v1.0.1 (99e406
), with Swift 6.0 for Linux on 29 Nov 2024 05:26:13 UTC.
Swift 6 data race errors: 6
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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MrAsterisco/PositionalDateComponentsFormatter.git
Reference: v1.0.1
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/MrAsterisco/PositionalDateComponentsFormatter
* tag v1.0.1 -> FETCH_HEAD
HEAD is now at 99e406c Merge pull request #2 from MrAsterisco/1-infinite-recursion-when-invoking-stringfor-with-a-timeinterval
Cloned https://github.com/MrAsterisco/PositionalDateComponentsFormatter.git
Revision (git rev-parse @):
99e406cadb1f05775455cac5d0dd73857035ac19
SUCCESS checkout https://github.com/MrAsterisco/PositionalDateComponentsFormatter.git at v1.0.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/MrAsterisco/PositionalDateComponentsFormatter.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 -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.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling PositionalDateComponentsFormatter PositionalDateComponentsFormatter.swift
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:8:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
8 | public static let `default` = Self(rawValue: 1 << 0)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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 |
10 | /// The drop leading zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:13:23: warning: static property 'dropLeading' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
11 | /// All units that are zero will be dropped starting from the left until one
12 | /// with a value higher than zero is found.
13 | public static let dropLeading = Self(rawValue: 1 << 1)
| |- warning: static property 'dropLeading' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropLeading' 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
14 |
15 | /// The drop trailing zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:18:23: warning: static property 'dropTrailing' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
16 | /// All units that are zero will be dropped starting from the right until
17 | /// one with a value higher than zero is found.
18 | public static let dropTrailing = Self(rawValue: 1 << 2)
| |- warning: static property 'dropTrailing' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropTrailing' 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
19 |
20 | /// The drop all zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:22:23: warning: static property 'dropAll' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
20 | /// The drop all zeroes formatting behavior.
21 | /// All units whose value is zero will be dropped.
22 | public static let dropAll = Self(rawValue: 1 << 3)
| |- warning: static property 'dropAll' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropAll' 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
23 |
24 | /// The drop no zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:26:23: warning: static property 'dropNone' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
24 | /// The drop no zeroes formatting behavior.
25 | /// Units whose value is zero will be kept.
26 | public static let dropNone = Self(rawValue: 1 << 4)
| |- warning: static property 'dropNone' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropNone' 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
27 |
28 | /// The add padding zeroes behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:32:23: warning: static property 'pad' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
30 | /// having at least 2 digits. For example, if the unit is `3`, it will be padded to
31 | /// `03`, but if the unit is `35`, it will remain as such.
32 | public static let pad = Self(rawValue: 1 << 5)
| |- warning: static property 'pad' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pad' 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
33 |
34 | public var rawValue: Int
[4/9] Emitting module PositionalDateComponentsFormatter
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:8:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
8 | public static let `default` = Self(rawValue: 1 << 0)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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 |
10 | /// The drop leading zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:13:23: warning: static property 'dropLeading' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
11 | /// All units that are zero will be dropped starting from the left until one
12 | /// with a value higher than zero is found.
13 | public static let dropLeading = Self(rawValue: 1 << 1)
| |- warning: static property 'dropLeading' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropLeading' 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
14 |
15 | /// The drop trailing zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:18:23: warning: static property 'dropTrailing' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
16 | /// All units that are zero will be dropped starting from the right until
17 | /// one with a value higher than zero is found.
18 | public static let dropTrailing = Self(rawValue: 1 << 2)
| |- warning: static property 'dropTrailing' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropTrailing' 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
19 |
20 | /// The drop all zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:22:23: warning: static property 'dropAll' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
20 | /// The drop all zeroes formatting behavior.
21 | /// All units whose value is zero will be dropped.
22 | public static let dropAll = Self(rawValue: 1 << 3)
| |- warning: static property 'dropAll' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropAll' 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
23 |
24 | /// The drop no zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:26:23: warning: static property 'dropNone' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
24 | /// The drop no zeroes formatting behavior.
25 | /// Units whose value is zero will be kept.
26 | public static let dropNone = Self(rawValue: 1 << 4)
| |- warning: static property 'dropNone' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropNone' 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
27 |
28 | /// The add padding zeroes behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:32:23: warning: static property 'pad' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
30 | /// having at least 2 digits. For example, if the unit is `3`, it will be padded to
31 | /// `03`, but if the unit is `35`, it will remain as such.
32 | public static let pad = Self(rawValue: 1 << 5)
| |- warning: static property 'pad' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pad' 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
33 |
34 | public var rawValue: Int
[5/9] Compiling PositionalDateComponentsFormatter PositionalDateComponentsFormatter+Measurement.swift
[6/9] Compiling PositionalDateComponentsFormatter PositionalDateComponentsFormatter+Output.swift
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:13:23: warning: static property 'dropLeading' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
11 | /// All units that are zero will be dropped starting from the left until one
12 | /// with a value higher than zero is found.
13 | public static let dropLeading = Self(rawValue: 1 << 1)
| |- warning: static property 'dropLeading' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropLeading' 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
14 |
15 | /// The drop trailing zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:22:23: warning: static property 'dropAll' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
20 | /// The drop all zeroes formatting behavior.
21 | /// All units whose value is zero will be dropped.
22 | public static let dropAll = Self(rawValue: 1 << 3)
| |- warning: static property 'dropAll' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropAll' 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
23 |
24 | /// The drop no zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:8:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
8 | public static let `default` = Self(rawValue: 1 << 0)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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 |
10 | /// The drop leading zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:18:23: warning: static property 'dropTrailing' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
16 | /// All units that are zero will be dropped starting from the right until
17 | /// one with a value higher than zero is found.
18 | public static let dropTrailing = Self(rawValue: 1 << 2)
| |- warning: static property 'dropTrailing' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dropTrailing' 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
19 |
20 | /// The drop all zeroes formatting behavior.
/host/spi-builder-workspace/Sources/PositionalDateComponentsFormatter/PositionalDateComponentsFormatter.swift:32:23: warning: static property 'pad' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public extension PositionalDateComponentsFormatter {
4 | /// Formatting constants for when values contain zeroes.
5 | struct ZeroFormattingBehavior: OptionSet {
| `- note: consider making struct 'ZeroFormattingBehavior' conform to the 'Sendable' protocol
6 | /// The default formatting behavior.
7 | /// This option corresponds to setting `dropLeading` and `pad`.
:
30 | /// having at least 2 digits. For example, if the unit is `3`, it will be padded to
31 | /// `03`, but if the unit is `35`, it will remain as such.
32 | public static let pad = Self(rawValue: 1 << 5)
| |- warning: static property 'pad' is not concurrency-safe because non-'Sendable' type 'PositionalDateComponentsFormatter.ZeroFormattingBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pad' 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
33 |
34 | public var rawValue: Int
[7/9] Compiling PositionalDateComponentsFormatter PositionalDateComponentsFormatter+TimeInterval.swift
[8/9] Compiling PositionalDateComponentsFormatter PositionalDateComponentsFormatter+Date.swift
[9/9] Compiling PositionalDateComponentsFormatter PositionalDateComponentsFormatter+DateComponents.swift
Build complete! (12.85s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "PositionalDateComponentsFormatter",
"name" : "PositionalDateComponentsFormatter",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "PositionalDateComponentsFormatter",
"targets" : [
"PositionalDateComponentsFormatter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PositionalDateComponentsFormatterTests",
"module_type" : "SwiftTarget",
"name" : "PositionalDateComponentsFormatterTests",
"path" : "Tests/PositionalDateComponentsFormatterTests",
"sources" : [
"DateComponentsTests.swift",
"DateTests.swift",
"MeasurementTests.swift",
"TimeIntervalTests.swift",
"TypeDeciderTests.swift"
],
"target_dependencies" : [
"PositionalDateComponentsFormatter"
],
"type" : "test"
},
{
"c99name" : "PositionalDateComponentsFormatter",
"module_type" : "SwiftTarget",
"name" : "PositionalDateComponentsFormatter",
"path" : "Sources/PositionalDateComponentsFormatter",
"product_memberships" : [
"PositionalDateComponentsFormatter"
],
"sources" : [
"PositionalDateComponentsFormatter+Date.swift",
"PositionalDateComponentsFormatter+DateComponents.swift",
"PositionalDateComponentsFormatter+Measurement.swift",
"PositionalDateComponentsFormatter+Output.swift",
"PositionalDateComponentsFormatter+TimeInterval.swift",
"PositionalDateComponentsFormatter.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
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.