Skip to content

docker build . fails: error: protocol 'RegisterContent' cannot be nested inside another declaration #3

@aylen384

Description

@aylen384
[1343/1344] Compiling xOTA_App AdminCommand.swift
/build/Sources/App/Jobs/RenderAward.swift:16:6: warning: stored property 'formatter' of 'Sendable'-conforming struct 'RenderAward' has non-sendable type 'DateFormatter'
        var formatter = {
            ^
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
open class DateFormatter : Formatter {
           ^
/build/Sources/App/Jobs/RenderAward.swift:2:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/build/Sources/App/SessionManagement/BaseAuthentificationController.swift:47:11: error: protocol 'RegisterContent' cannot be nested inside another declaration
        protocol RegisterContent: Content {
                 ^
/build/Sources/App/SessionManagement/BaseAuthentificationController.swift:48:20: error: cannot find type 'RegisterAccountType' in scope
                var accountType: RegisterAccountType? { get }
                                 ^~~~~~~~~~~~~~~~~~~
error: fatalError
Error: building at STEP "RUN swift build -c release                 --static-swift-stdlib                 -Xlinker -ljemalloc": while running runtime: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions