Build Information
Successful build of StreamKit, reference 0.7.0 (555837
), with Swift 6.0 for Linux on 31 Oct 2024 04:25:36 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skylab-inc/streamkit.git
Reference: 0.7.0
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/skylab-inc/streamkit
* tag 0.7.0 -> FETCH_HEAD
HEAD is now at 555837e Fixed test target.
Cloned https://github.com/skylab-inc/streamkit.git
Revision (git rev-parse @):
555837e694e11d06f9e4250f911335477e3b249b
SUCCESS checkout https://github.com/skylab-inc/streamkit.git at 0.7.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/skylab-inc/streamkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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 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/10] Compiling StreamKit Disposable.swift
[4/10] Compiling StreamKit Bag.swift
[5/10] Emitting module StreamKit
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:88:5: warning: 'public' modifier is redundant for initializer declared in a public extension
86 | /// Creates a Signal that will immediately send one value
87 | /// then complete.
88 | public init(value: Value) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
89 | self.init { observer in
90 | observer.sendNext(value)
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:98:5: warning: 'public' modifier is redundant for initializer declared in a public extension
96 | /// Creates a Signal that will immediately fail with the
97 | /// given error.
98 | public init(error: Error) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
99 | self.init { observer in
100 | observer.sendFailed(error)
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:107:5: warning: 'public' modifier is redundant for initializer declared in a public extension
105 | /// Creates a Signal that will immediately send the values
106 | /// from the given sequence, then complete.
107 | public init<S: Sequence>(values: S) where S.Iterator.Element == Value {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
108 | self.init { observer in
109 | var disposed = false
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:127:5: warning: 'public' modifier is redundant for initializer declared in a public extension
125 | /// Creates a Signal that will immediately send the values
126 | /// from the given sequence, then complete.
127 | public init(values: Value...) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
128 | self.init(values: values)
129 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:133:5: warning: 'public' modifier is redundant for static property declared in a public extension
131 | /// A Signal that will immediately complete without sending
132 | /// any values.
133 | public static var empty: Self {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
134 | return self.init { observer in
135 | observer.sendCompleted()
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:141:5: warning: 'public' modifier is redundant for static property declared in a public extension
139 |
140 | /// A Signal that never sends any events to its observers.
141 | public static var never: Self {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
142 | return self.init { _ in return nil }
143 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:188:5: warning: 'public' modifier is redundant for instance method declared in a public extension
186 | /// of the Disposable will have no effect on the `Signal` itself.
187 | @discardableResult
188 | public func add(observer: Observer<Value, Error>) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
189 | let token = signal.observers.insert(observer)
190 | return ActionDisposable {
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:199:5: warning: 'public' modifier is redundant for instance method declared in a public extension
197 | /// invocations.
198 | @discardableResult
199 | public func on(action: @escaping Observer<Value, Error>.Action) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
200 | return self.add(observer: Observer(action))
201 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:210:5: warning: 'public' modifier is redundant for instance method declared in a public extension
208 | /// itself.
209 | @discardableResult
210 | public func onNext(next: @escaping (Value) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
211 | return self.add(observer: Observer(next: next))
212 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:221:5: warning: 'public' modifier is redundant for instance method declared in a public extension
219 | /// itself.
220 | @discardableResult
221 | public func onCompleted(completed: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
222 | return self.add(observer: Observer(completed: completed))
223 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:232:5: warning: 'public' modifier is redundant for instance method declared in a public extension
230 | /// itself.
231 | @discardableResult
232 | public func onFailed(error: @escaping (Error) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
233 | return self.add(observer: Observer(failed: error))
234 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:244:5: warning: 'public' modifier is redundant for instance method declared in a public extension
242 | /// itself.
243 | @discardableResult
244 | public func onInterrupted(interrupted: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
245 | return self.add(observer: Observer(interrupted: interrupted))
246 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:252:5: warning: 'public' modifier is redundant for property declared in a public extension
250 | public extension SignalType {
251 |
252 | public var identity: Signal<Value, Error> {
| `- warning: 'public' modifier is redundant for property declared in a public extension
253 | return self.map { $0 }
254 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:257:5: warning: 'public' modifier is redundant for instance method declared in a public extension
255 |
256 | /// Maps each value in the signal to a new value.
257 | public func map<U>(_ transform: @escaping (Value) -> U) -> Signal<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
258 | return Signal { observer in
259 | return self.on { event -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:266:5: warning: 'public' modifier is redundant for instance method declared in a public extension
264 |
265 | /// Maps errors in the signal to a new error.
266 | public func mapError<F>(_ transform: @escaping (Error) -> F) -> Signal<Value, F> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
267 | return Signal { observer in
268 | return self.on { event -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:275:5: warning: 'public' modifier is redundant for instance method declared in a public extension
273 |
274 | /// Preserves only the values of the signal that pass the given predicate.
275 | public func filter(_ predicate: @escaping (Value) -> Bool) -> Signal<Value, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
276 | return Signal { observer in
277 | return self.on { (event: Event<Value, Error>) -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:292:5: warning: 'public' modifier is redundant for instance method declared in a public extension
290 | /// Splits the signal into two signals. The first signal in the tuple matches the
291 | /// predicate, the second signal does not match the predicate
292 | public func partition(_ predicate: @escaping (Value) -> Bool) -> (Signal<Value, Error>, Signal<Value, Error>) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
293 | let (left, leftObserver) = Signal<Value, Error>.pipe()
294 | let (right, rightObserver) = Signal<Value, Error>.pipe()
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:312:5: warning: 'public' modifier is redundant for instance method declared in a public extension
310 |
311 | /// Aggregate values into a single combined value. Mirrors the Swift Collection
312 | public func reduce<T>(initial: T, _ combine: @escaping (T, Value) -> T) -> Signal<T, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
313 | return Signal { observer in
314 | var accumulator = initial
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:324:5: warning: 'public' modifier is redundant for instance method declared in a public extension
322 | }
323 |
324 | public func flatMap<U>(_ transform: @escaping (Value) -> U?) -> Signal<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
325 | return Signal { observer in
326 | return self.on { event -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:335:5: warning: 'public' modifier is redundant for instance method declared in a public extension
333 |
334 |
335 | public func flatMap<U>(_ transform: @escaping (Value) -> Source<U, Error>) -> Signal<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
336 | return map(transform).joined()
337 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:104:5: warning: 'public' modifier is redundant for property declared in a public extension
102 | public extension SourceType {
103 |
104 | public var signal: Signal<Value, Error> {
| `- warning: 'public' modifier is redundant for property declared in a public extension
105 | return Signal { observer in
106 | self.source.add(observer: observer)
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:134:5: warning: 'public' modifier is redundant for instance method declared in a public extension
132 | /// of the Disposable will have no effect on the Signal itself.
133 | @discardableResult
134 | public func add(observer: Observer<Value, Error>) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
135 | let token = source.observers.insert(observer)
136 | return ActionDisposable { [weak source = source] in
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:146:5: warning: 'public' modifier is redundant for instance method declared in a public extension
144 | /// Returns a Disposable which can be used to dispose of the added observer.
145 | @discardableResult
146 | public func start(with observer: Observer<Value, Error>) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
147 | let disposable = source.add(observer: observer)
148 | source.start()
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:157:5: warning: 'public' modifier is redundant for instance method declared in a public extension
155 | /// Returns a Disposable which can be used to dispose of the added observer.
156 | @discardableResult
157 | public func start(_ observerAction: @escaping Observer<Value, Error>.Action) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
158 | return start(with: Observer(observerAction))
159 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:166:5: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | /// Returns a Disposable which can be used to dispose of the added observer.
165 | @discardableResult
166 | public func startWithNext(next: @escaping (Value) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | return start(with: Observer(next: next))
168 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:175:5: warning: 'public' modifier is redundant for instance method declared in a public extension
173 | /// Returns a Disposable which can be used to dispose of the added observer.
174 | @discardableResult
175 | public func startWithCompleted(completed: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
176 | return start(with: Observer(completed: completed))
177 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:184:5: warning: 'public' modifier is redundant for instance method declared in a public extension
182 | /// Returns a Disposable which can be used to dispose of the added observer.
183 | @discardableResult
184 | public func startWithFailed(failed: @escaping (Error) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
185 | return start(with: Observer(failed: failed))
186 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:193:5: warning: 'public' modifier is redundant for instance method declared in a public extension
191 | /// Returns a Disposable which can be used to dispose of the added observer.
192 | @discardableResult
193 | public func startWithInterrupted(interrupted: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
194 | return start(with: Observer(interrupted: interrupted))
195 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:206:5: warning: 'public' modifier is redundant for instance method declared in a public extension
204 | /// The new `Source` is in no way related to the source `Source` except
205 | /// that they share a reference to the same `startHandler`.
206 | public func lift<U, F>(_ transform: @escaping (Signal<Value, Error>) -> Signal<U, F>) -> Source<U, F> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
207 | return Source { observer in
208 | let (pipeSignal, pipeObserver) = Signal<Value, Error>.pipe()
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:214:5: warning: 'public' modifier is redundant for instance method declared in a public extension
212 | }
213 |
214 | public func lift<U, F>(_ transform: @escaping (Signal<Value, Error>) -> (Signal<U, F>, Signal<U, F>))
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
215 | -> (Source<U, F>, Source<U, F>)
216 | {
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:230:5: warning: 'public' modifier is redundant for property declared in a public extension
228 | }
229 |
230 | public var identity: Source<Value, Error> {
| `- warning: 'public' modifier is redundant for property declared in a public extension
231 | return lift { $0.identity }
232 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:235:5: warning: 'public' modifier is redundant for instance method declared in a public extension
233 |
234 | /// Maps each value in the signal to a new value.
235 | public func map<U>(_ transform: @escaping (Value) -> U) -> Source<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
236 | return lift { $0.map(transform) }
237 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:240:5: warning: 'public' modifier is redundant for instance method declared in a public extension
238 |
239 | /// Maps errors in the signal to a new error.
240 | public func mapError<F>(_ transform: @escaping (Error) -> F) -> Source<Value, F> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
241 | return lift { $0.mapError(transform) }
242 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:245:5: warning: 'public' modifier is redundant for instance method declared in a public extension
243 |
244 | /// Preserves only the values of the signal that pass the given predicate.
245 | public func filter(_ predicate: @escaping (Value) -> Bool) -> Source<Value, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
246 | return lift { $0.filter(predicate) }
247 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:251:5: warning: 'public' modifier is redundant for instance method declared in a public extension
249 | /// Splits the signal into two signals. The first signal in the tuple matches the
250 | /// predicate, the second signal does not match the predicate
251 | public func partition(_ predicate: @escaping (Value) -> Bool)
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
252 | -> (Source<Value, Error>, Source<Value, Error>) {
253 | return lift { $0.partition(predicate) }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:257:5: warning: 'public' modifier is redundant for instance method declared in a public extension
255 |
256 | /// Aggregate values into a single combined value. Mirrors the Swift Collection
257 | public func reduce<T>(initial: T, _ combine: @escaping (T, Value) -> T) -> Source<T, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
258 | return lift { $0.reduce(initial: initial, combine) }
259 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:261:5: warning: 'public' modifier is redundant for instance method declared in a public extension
259 | }
260 |
261 | public func flatMap<U>(_ transform: @escaping (Value) -> U?) -> Source<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
262 | return lift { $0.flatMap(transform) }
263 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:265:5: warning: 'public' modifier is redundant for instance method declared in a public extension
263 | }
264 |
265 | public func flatMap<U>(_ transform: @escaping (Value) -> Source<U, Error>) -> Source<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
266 | return lift { $0.map(transform).joined() }
267 | }
[6/10] Compiling StreamKit Error.swift
[7/10] Compiling StreamKit Observer.swift
[8/10] Compiling StreamKit Source.swift
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:104:5: warning: 'public' modifier is redundant for property declared in a public extension
102 | public extension SourceType {
103 |
104 | public var signal: Signal<Value, Error> {
| `- warning: 'public' modifier is redundant for property declared in a public extension
105 | return Signal { observer in
106 | self.source.add(observer: observer)
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:134:5: warning: 'public' modifier is redundant for instance method declared in a public extension
132 | /// of the Disposable will have no effect on the Signal itself.
133 | @discardableResult
134 | public func add(observer: Observer<Value, Error>) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
135 | let token = source.observers.insert(observer)
136 | return ActionDisposable { [weak source = source] in
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:146:5: warning: 'public' modifier is redundant for instance method declared in a public extension
144 | /// Returns a Disposable which can be used to dispose of the added observer.
145 | @discardableResult
146 | public func start(with observer: Observer<Value, Error>) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
147 | let disposable = source.add(observer: observer)
148 | source.start()
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:157:5: warning: 'public' modifier is redundant for instance method declared in a public extension
155 | /// Returns a Disposable which can be used to dispose of the added observer.
156 | @discardableResult
157 | public func start(_ observerAction: @escaping Observer<Value, Error>.Action) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
158 | return start(with: Observer(observerAction))
159 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:166:5: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | /// Returns a Disposable which can be used to dispose of the added observer.
165 | @discardableResult
166 | public func startWithNext(next: @escaping (Value) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | return start(with: Observer(next: next))
168 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:175:5: warning: 'public' modifier is redundant for instance method declared in a public extension
173 | /// Returns a Disposable which can be used to dispose of the added observer.
174 | @discardableResult
175 | public func startWithCompleted(completed: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
176 | return start(with: Observer(completed: completed))
177 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:184:5: warning: 'public' modifier is redundant for instance method declared in a public extension
182 | /// Returns a Disposable which can be used to dispose of the added observer.
183 | @discardableResult
184 | public func startWithFailed(failed: @escaping (Error) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
185 | return start(with: Observer(failed: failed))
186 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:193:5: warning: 'public' modifier is redundant for instance method declared in a public extension
191 | /// Returns a Disposable which can be used to dispose of the added observer.
192 | @discardableResult
193 | public func startWithInterrupted(interrupted: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
194 | return start(with: Observer(interrupted: interrupted))
195 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:206:5: warning: 'public' modifier is redundant for instance method declared in a public extension
204 | /// The new `Source` is in no way related to the source `Source` except
205 | /// that they share a reference to the same `startHandler`.
206 | public func lift<U, F>(_ transform: @escaping (Signal<Value, Error>) -> Signal<U, F>) -> Source<U, F> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
207 | return Source { observer in
208 | let (pipeSignal, pipeObserver) = Signal<Value, Error>.pipe()
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:214:5: warning: 'public' modifier is redundant for instance method declared in a public extension
212 | }
213 |
214 | public func lift<U, F>(_ transform: @escaping (Signal<Value, Error>) -> (Signal<U, F>, Signal<U, F>))
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
215 | -> (Source<U, F>, Source<U, F>)
216 | {
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:230:5: warning: 'public' modifier is redundant for property declared in a public extension
228 | }
229 |
230 | public var identity: Source<Value, Error> {
| `- warning: 'public' modifier is redundant for property declared in a public extension
231 | return lift { $0.identity }
232 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:235:5: warning: 'public' modifier is redundant for instance method declared in a public extension
233 |
234 | /// Maps each value in the signal to a new value.
235 | public func map<U>(_ transform: @escaping (Value) -> U) -> Source<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
236 | return lift { $0.map(transform) }
237 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:240:5: warning: 'public' modifier is redundant for instance method declared in a public extension
238 |
239 | /// Maps errors in the signal to a new error.
240 | public func mapError<F>(_ transform: @escaping (Error) -> F) -> Source<Value, F> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
241 | return lift { $0.mapError(transform) }
242 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:245:5: warning: 'public' modifier is redundant for instance method declared in a public extension
243 |
244 | /// Preserves only the values of the signal that pass the given predicate.
245 | public func filter(_ predicate: @escaping (Value) -> Bool) -> Source<Value, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
246 | return lift { $0.filter(predicate) }
247 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:251:5: warning: 'public' modifier is redundant for instance method declared in a public extension
249 | /// Splits the signal into two signals. The first signal in the tuple matches the
250 | /// predicate, the second signal does not match the predicate
251 | public func partition(_ predicate: @escaping (Value) -> Bool)
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
252 | -> (Source<Value, Error>, Source<Value, Error>) {
253 | return lift { $0.partition(predicate) }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:257:5: warning: 'public' modifier is redundant for instance method declared in a public extension
255 |
256 | /// Aggregate values into a single combined value. Mirrors the Swift Collection
257 | public func reduce<T>(initial: T, _ combine: @escaping (T, Value) -> T) -> Source<T, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
258 | return lift { $0.reduce(initial: initial, combine) }
259 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:261:5: warning: 'public' modifier is redundant for instance method declared in a public extension
259 | }
260 |
261 | public func flatMap<U>(_ transform: @escaping (Value) -> U?) -> Source<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
262 | return lift { $0.flatMap(transform) }
263 | }
/host/spi-builder-workspace/Sources/StreamKit/Source.swift:265:5: warning: 'public' modifier is redundant for instance method declared in a public extension
263 | }
264 |
265 | public func flatMap<U>(_ transform: @escaping (Value) -> Source<U, Error>) -> Source<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
266 | return lift { $0.map(transform).joined() }
267 | }
[9/10] Compiling StreamKit Event.swift
[10/10] Compiling StreamKit Signal.swift
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:88:5: warning: 'public' modifier is redundant for initializer declared in a public extension
86 | /// Creates a Signal that will immediately send one value
87 | /// then complete.
88 | public init(value: Value) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
89 | self.init { observer in
90 | observer.sendNext(value)
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:98:5: warning: 'public' modifier is redundant for initializer declared in a public extension
96 | /// Creates a Signal that will immediately fail with the
97 | /// given error.
98 | public init(error: Error) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
99 | self.init { observer in
100 | observer.sendFailed(error)
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:107:5: warning: 'public' modifier is redundant for initializer declared in a public extension
105 | /// Creates a Signal that will immediately send the values
106 | /// from the given sequence, then complete.
107 | public init<S: Sequence>(values: S) where S.Iterator.Element == Value {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
108 | self.init { observer in
109 | var disposed = false
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:127:5: warning: 'public' modifier is redundant for initializer declared in a public extension
125 | /// Creates a Signal that will immediately send the values
126 | /// from the given sequence, then complete.
127 | public init(values: Value...) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
128 | self.init(values: values)
129 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:133:5: warning: 'public' modifier is redundant for static property declared in a public extension
131 | /// A Signal that will immediately complete without sending
132 | /// any values.
133 | public static var empty: Self {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
134 | return self.init { observer in
135 | observer.sendCompleted()
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:141:5: warning: 'public' modifier is redundant for static property declared in a public extension
139 |
140 | /// A Signal that never sends any events to its observers.
141 | public static var never: Self {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
142 | return self.init { _ in return nil }
143 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:188:5: warning: 'public' modifier is redundant for instance method declared in a public extension
186 | /// of the Disposable will have no effect on the `Signal` itself.
187 | @discardableResult
188 | public func add(observer: Observer<Value, Error>) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
189 | let token = signal.observers.insert(observer)
190 | return ActionDisposable {
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:199:5: warning: 'public' modifier is redundant for instance method declared in a public extension
197 | /// invocations.
198 | @discardableResult
199 | public func on(action: @escaping Observer<Value, Error>.Action) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
200 | return self.add(observer: Observer(action))
201 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:210:5: warning: 'public' modifier is redundant for instance method declared in a public extension
208 | /// itself.
209 | @discardableResult
210 | public func onNext(next: @escaping (Value) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
211 | return self.add(observer: Observer(next: next))
212 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:221:5: warning: 'public' modifier is redundant for instance method declared in a public extension
219 | /// itself.
220 | @discardableResult
221 | public func onCompleted(completed: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
222 | return self.add(observer: Observer(completed: completed))
223 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:232:5: warning: 'public' modifier is redundant for instance method declared in a public extension
230 | /// itself.
231 | @discardableResult
232 | public func onFailed(error: @escaping (Error) -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
233 | return self.add(observer: Observer(failed: error))
234 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:244:5: warning: 'public' modifier is redundant for instance method declared in a public extension
242 | /// itself.
243 | @discardableResult
244 | public func onInterrupted(interrupted: @escaping () -> Void) -> Disposable? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
245 | return self.add(observer: Observer(interrupted: interrupted))
246 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:252:5: warning: 'public' modifier is redundant for property declared in a public extension
250 | public extension SignalType {
251 |
252 | public var identity: Signal<Value, Error> {
| `- warning: 'public' modifier is redundant for property declared in a public extension
253 | return self.map { $0 }
254 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:257:5: warning: 'public' modifier is redundant for instance method declared in a public extension
255 |
256 | /// Maps each value in the signal to a new value.
257 | public func map<U>(_ transform: @escaping (Value) -> U) -> Signal<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
258 | return Signal { observer in
259 | return self.on { event -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:266:5: warning: 'public' modifier is redundant for instance method declared in a public extension
264 |
265 | /// Maps errors in the signal to a new error.
266 | public func mapError<F>(_ transform: @escaping (Error) -> F) -> Signal<Value, F> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
267 | return Signal { observer in
268 | return self.on { event -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:275:5: warning: 'public' modifier is redundant for instance method declared in a public extension
273 |
274 | /// Preserves only the values of the signal that pass the given predicate.
275 | public func filter(_ predicate: @escaping (Value) -> Bool) -> Signal<Value, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
276 | return Signal { observer in
277 | return self.on { (event: Event<Value, Error>) -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:292:5: warning: 'public' modifier is redundant for instance method declared in a public extension
290 | /// Splits the signal into two signals. The first signal in the tuple matches the
291 | /// predicate, the second signal does not match the predicate
292 | public func partition(_ predicate: @escaping (Value) -> Bool) -> (Signal<Value, Error>, Signal<Value, Error>) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
293 | let (left, leftObserver) = Signal<Value, Error>.pipe()
294 | let (right, rightObserver) = Signal<Value, Error>.pipe()
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:312:5: warning: 'public' modifier is redundant for instance method declared in a public extension
310 |
311 | /// Aggregate values into a single combined value. Mirrors the Swift Collection
312 | public func reduce<T>(initial: T, _ combine: @escaping (T, Value) -> T) -> Signal<T, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
313 | return Signal { observer in
314 | var accumulator = initial
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:324:5: warning: 'public' modifier is redundant for instance method declared in a public extension
322 | }
323 |
324 | public func flatMap<U>(_ transform: @escaping (Value) -> U?) -> Signal<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
325 | return Signal { observer in
326 | return self.on { event -> Void in
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:335:5: warning: 'public' modifier is redundant for instance method declared in a public extension
333 |
334 |
335 | public func flatMap<U>(_ transform: @escaping (Value) -> Source<U, Error>) -> Signal<U, Error> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
336 | return map(transform).joined()
337 | }
/host/spi-builder-workspace/Sources/StreamKit/Signal.swift:174:23: warning: function call causes an infinite recursion
172 |
173 | var cancelDisposable: Disposable {
174 | return signal.cancelDisposable
| `- warning: function call causes an infinite recursion
175 | }
176 |
Build complete! (8.94s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "StreamKit",
"name" : "StreamKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "StreamKit",
"targets" : [
"StreamKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StreamKitTests",
"module_type" : "SwiftTarget",
"name" : "StreamKitTests",
"path" : "Tests/StreamKitTests",
"sources" : [
"Tests.swift"
],
"target_dependencies" : [
"StreamKit"
],
"type" : "test"
},
{
"c99name" : "StreamKit",
"module_type" : "SwiftTarget",
"name" : "StreamKit",
"path" : "Sources/StreamKit",
"product_memberships" : [
"StreamKit"
],
"sources" : [
"Bag.swift",
"Disposable.swift",
"Error.swift",
"Event.swift",
"Observer.swift",
"Signal.swift",
"Source.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
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.