Build Information
Failed to build CampusDualKit with Swift 5.8 for Linux.
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jonasrichardrichter/CampusDualKit.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/jonasrichardrichter/CampusDualKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 88bae4d Create .spi.yml
Cloned https://github.com/jonasrichardrichter/CampusDualKit.git
Revision (git rev-parse @):
88bae4db285f847c2f37920bd8761eaa303c19e2
SPI manifest file found: $PWD/checkout/.spi.yml
SUCCESS checkout https://github.com/jonasrichardrichter/CampusDualKit.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/apple/swift-log.git
[1/3152] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.39s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.2 (0.62s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.2
Building for debugging...
[1/4] Emitting module Logging
[2/4] Compiling Logging LogHandler.swift
[3/4] Compiling Logging Logging.swift
[4/4] Compiling Logging Locks.swift
[7/14] Compiling CampusDualKit URL+CampusDual.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/14] Compiling CampusDualKit Logger+CustomInit.swift
[9/14] Emitting module CampusDualKit
/host/spi-builder-workspace/Sources/CampusDualKit/Extensions/URLSession+scheduleServiceDataTask.swift:10:10: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
internal extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:127:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession) async throws -> [StudyDay] {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[10/14] Compiling CampusDualKit ScheduleServiceError.swift
[11/14] Compiling CampusDualKit StudyDay.swift
[12/14] Compiling CampusDualKit ScheduleService.swift
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:127:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession) async throws -> [StudyDay] {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:51:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'scheduleServiceDataTask'
session.scheduleServiceDataTask(request: request, session: session) { (result: Result<Int, ScheduleServiceError>) in
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:104:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:106:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'scheduleServiceDataTask'
session.scheduleServiceDataTask(request: request, session: session) { (result: Result<[Lesson], ScheduleServiceError>) in
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
[13/14] Compiling CampusDualKit Lesson.swift
[14/14] Compiling CampusDualKit URLSession+scheduleServiceDataTask.swift
/host/spi-builder-workspace/Sources/CampusDualKit/Extensions/URLSession+scheduleServiceDataTask.swift:10:10: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
internal extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/Extensions/URLSession+scheduleServiceDataTask.swift:12:57: error: cannot find type 'URLRequest' in scope
func scheduleServiceDataTask<T: Decodable>(request: URLRequest, session: URLSession, completion: @escaping (Result<T, ScheduleServiceError>) -> Void) {
^~~~~~~~~~
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/3] Emitting module CampusDualKit
/host/spi-builder-workspace/Sources/CampusDualKit/Extensions/URLSession+scheduleServiceDataTask.swift:10:10: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
internal extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:127:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession) async throws -> [StudyDay] {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[2/3] Compiling CampusDualKit URLSession+scheduleServiceDataTask.swift
/host/spi-builder-workspace/Sources/CampusDualKit/Extensions/URLSession+scheduleServiceDataTask.swift:10:10: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
internal extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/Extensions/URLSession+scheduleServiceDataTask.swift:12:57: error: cannot find type 'URLRequest' in scope
func scheduleServiceDataTask<T: Decodable>(request: URLRequest, session: URLSession, completion: @escaping (Result<T, ScheduleServiceError>) -> Void) {
^~~~~~~~~~
[3/3] Compiling CampusDualKit ScheduleService.swift
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:32:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared, completion: @escaping (Result<ScheduleService, ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:84: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:73:98: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static func login(for username: String, with password: String, session: URLSession = .shared) async throws -> ScheduleService {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:95:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession = .shared, completion: @escaping (Result<[StudyDay], ScheduleServiceError>) -> Void) {
~^~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:127:76: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func studyDays(from startDate: Date, to endDate: Date, session: URLSession) async throws -> [StudyDay] {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:51:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:53:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'scheduleServiceDataTask'
session.scheduleServiceDataTask(request: request, session: session) { (result: Result<Int, ScheduleServiceError>) in
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:104:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/CampusDualKit/ScheduleService/ScheduleService.swift:106:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'scheduleServiceDataTask'
session.scheduleServiceDataTask(request: request, session: session) { (result: Result<[Lesson], ScheduleServiceError>) in
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
BUILD FAILURE 5.8 linux