Build Information
Failed to build SwiftyNotion with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.30.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buhe/SwiftyNotion.git
Reference: 0.1.5
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/buhe/SwiftyNotion
* tag 0.1.5 -> FETCH_HEAD
HEAD is now at ccfe560 "Add support for PDF blocks in the NotionBlock struct."
Cloned https://github.com/buhe/SwiftyNotion.git
Revision (git rev-parse @):
ccfe5600df5e315e48470ca840f682ec446869f8
SUCCESS checkout https://github.com/buhe/SwiftyNotion.git at 0.1.5
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $workDir
https://github.com/buhe/SwiftyNotion.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[1/9] Compiling SwiftyNotion NotionRichText.swift
[2/10] Compiling SwiftyNotion NotionList.swift
[3/10] Compiling SwiftyNotion NotionRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling SwiftyNotion NotionDatabase.swift
[5/10] Compiling SwiftyNotion NotionBlock.swift
[6/10] Compiling SwiftyNotion NotionCode.swift
[7/10] Compiling SwiftyNotion NotionIdentifiable.swift
[8/10] Emitting module SwiftyNotion
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:52:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
[9/10] Compiling SwiftyNotion SwiftyNotion.swift
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:52:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:21:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(from: notionRequest, baseUrl: baseUrl, secretKey: secretKey)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:22:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: request)
~~~~~~~~~~ ^~~~~~
[10/10] Compiling SwiftyNotion NotionPage.swift
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module SwiftyNotion
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:52:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
[2/2] Compiling SwiftyNotion SwiftyNotion.swift
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:52:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:21:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(from: notionRequest, baseUrl: baseUrl, secretKey: secretKey)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNotion/SwiftyNotion.swift:22:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, _) = try await URLSession.shared.data(for: request)
~~~~~~~~~~ ^~~~~~
error: fatalError
BUILD FAILURE 5.9 linux