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 swift-any-sort-comparator with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/roanutil/swift-any-sort-comparator.git
Reference: main
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/roanutil/swift-any-sort-comparator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eb4b39e Merge pull request #3 from roanutil/spi-documentation
Cloned https://github.com/roanutil/swift-any-sort-comparator.git
Revision (git rev-parse @):
eb4b39e9e3060d79ccbd82d59852b8bee4be1c71
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/roanutil/swift-any-sort-comparator.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/roanutil/swift-any-sort-comparator.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling AnySortComparator ComparisonResult+Inverted.swift
[4/5] Emitting module AnySortComparator
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
[5/5] Compiling AnySortComparator AnySortComparator.swift
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:31:25: error: value of type 'Erased' has no member 'compare'
        _compare = base.compare(_:_:)
                   ~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:32:29: error: value of type 'Erased' has no member 'order'
        initialOrder = base.order
                       ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:33:22: error: value of type 'Erased' has no member 'order'
        order = base.order
                ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:34:24: error: initializer 'init(_:)' requires that 'Erased' conform to 'Hashable'
        hashableBase = AnyHashable(base)
                       ^
Swift.AnyHashable:2:12: note: where 'H' = 'Erased'
    public init<H>(_ base: H) where H : Hashable
           ^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module AnySortComparator
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
[3/3] Compiling AnySortComparator AnySortComparator.swift
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:31:25: error: value of type 'Erased' has no member 'compare'
        _compare = base.compare(_:_:)
                   ~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:32:29: error: value of type 'Erased' has no member 'order'
        initialOrder = base.order
                       ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:33:22: error: value of type 'Erased' has no member 'order'
        order = base.order
                ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:34:24: error: initializer 'init(_:)' requires that 'Erased' conform to 'Hashable'
        hashableBase = AnyHashable(base)
                       ^
Swift.AnyHashable:2:12: note: where 'H' = 'Erased'
    public init<H>(_ base: H) where H : Hashable
           ^
error: fatalError
BUILD FAILURE 5.10 linux