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 SwiftMoment 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/akosma/SwiftMoment.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/akosma/SwiftMoment
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4cd4ee8 Merge pull request #97 from psi-gh/master
Cloned https://github.com/akosma/SwiftMoment.git
Revision (git rev-parse @):
4cd4ee886328f9514c20f050b81d1725337ddd33
SUCCESS checkout https://github.com/akosma/SwiftMoment.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/akosma/SwiftMoment.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling SwiftMoment Operators.swift
[4/11] Compiling SwiftMoment TimeUnit.swift
[5/11] Compiling SwiftMoment MomentFromNow.swift
[6/11] Emitting module SwiftMoment
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead
15 | 		let locale: Locale
16 |
17 | 		var hashValue: Int {
   |       `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:26:21: warning: static property 'calendarCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
   |                     |- warning: static property 'calendarCache' 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 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'calendarCache' 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 | 	private static var lock = NSLock()
28 |
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:27:21: warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
27 | 	private static var lock = NSLock()
   |                     |- warning: static property 'lock' 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 'lock' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'lock' 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
28 |
29 | 	// create calendars on demand; in most cases, will return the same calendar
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:46:13: warning: static property 'defaultTimezone' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
   |             |- warning: static property 'defaultTimezone' 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 'defaultTimezone' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultTimezone' 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
47 | }
48 |
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:45:13: warning: static property 'defaultLocale' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
   |             |- warning: static property 'defaultLocale' 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 'defaultLocale' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultLocale' 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
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
47 | }
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:44:13: warning: static property 'defaultCalendar' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | 	}
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
   |             |- warning: static property 'defaultCalendar' 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 'defaultCalendar' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultCalendar' 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
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
[7/11] Compiling SwiftMoment Moment.swift
[8/11] Compiling SwiftMoment MomentCache.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead
15 | 		let locale: Locale
16 |
17 | 		var hashValue: Int {
   |       `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:26:21: warning: static property 'calendarCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
   |                     |- warning: static property 'calendarCache' 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 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'calendarCache' 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 | 	private static var lock = NSLock()
28 |
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:27:21: warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
27 | 	private static var lock = NSLock()
   |                     |- warning: static property 'lock' 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 'lock' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'lock' 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
28 |
29 | 	// create calendars on demand; in most cases, will return the same calendar
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:46:13: warning: static property 'defaultTimezone' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
   |             |- warning: static property 'defaultTimezone' 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 'defaultTimezone' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultTimezone' 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
47 | }
48 |
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:45:13: warning: static property 'defaultLocale' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
   |             |- warning: static property 'defaultLocale' 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 'defaultLocale' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultLocale' 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
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
47 | }
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:44:13: warning: static property 'defaultCalendar' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | 	}
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
   |             |- warning: static property 'defaultCalendar' 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 'defaultCalendar' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultCalendar' 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
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
[9/11] Compiling SwiftMoment Extensions.swift
[10/11] Compiling SwiftMoment LazyBox.swift
[11/11] Compiling SwiftMoment Duration.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/Duration.swift:108:25: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
106 |     /// A textual representation of this instance.
107 |     public var description: String {
108 |         let formatter = DateComponentsFormatter()
    |                         `- error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
109 |         formatter.calendar = Calendar(identifier: Calendar.Identifier.gregorian)
110 |         formatter.calendar?.timeZone = TimeZone(abbreviation: "UTC")!
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
 2 | open class DateComponentsFormatter : Formatter {
   |            `- note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 3 |     public enum UnitsStyle : Int {
 4 |         case positional
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.