Build Information
Failed to build EmailValidation with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/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/josetorronteras/EmailValidationMacro.git
Reference: 0.1.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/josetorronteras/EmailValidationMacro
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at a61a3c3 feat: add email validation macro and update README (#2)
Cloned https://github.com/josetorronteras/EmailValidationMacro.git
Revision (git rev-parse @):
a61a3c3656af07f588300848ecc5b79e6cb4ca40
SUCCESS checkout https://github.com/josetorronteras/EmailValidationMacro.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/josetorronteras/EmailValidationMacro.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/apple/swift-syntax.git
[1/57423] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.72s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (1.59s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Building for debugging...
[0/35] Write sources
[15/35] Write swift-version-24593BA9C3E375BF.txt
[17/37] Compiling SwiftSyntax509 Empty.swift
[18/37] Emitting module SwiftSyntax509
[19/38] Wrapping AST for SwiftSyntax509 for debugging
[21/83] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[22/83] Compiling SwiftSyntax Syntax.swift
[23/83] Compiling SwiftSyntax SyntaxArena.swift
[24/83] Compiling SwiftSyntax SyntaxChildren.swift
[25/83] Compiling SwiftSyntax SyntaxCollection.swift
[26/83] Compiling SwiftSyntax SyntaxData.swift
[27/89] Compiling SwiftSyntax RawSyntax.swift
[28/89] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[29/89] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[30/89] Compiling SwiftSyntax RawSyntaxTokenView.swift
[31/89] Compiling SwiftSyntax SourceLength.swift
[32/89] Compiling SwiftSyntax SourceLocation.swift
[33/89] Compiling SwiftSyntax SourcePresence.swift
[34/89] Compiling SwiftSyntax SyntaxText.swift
[35/89] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[36/89] Compiling SwiftSyntax TokenDiagnostic.swift
[37/89] Compiling SwiftSyntax TokenSyntax.swift
[38/89] Compiling SwiftSyntax Trivia.swift
[39/89] Compiling SwiftSyntax Utils.swift
[40/89] Emitting module SwiftSyntax
[41/89] Compiling SwiftSyntax ChildNameForKeyPath.swift
[42/89] Compiling SwiftSyntax Keyword.swift
[43/89] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[44/89] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[45/89] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[46/89] Compiling SwiftSyntax SyntaxBaseNodes.swift
[47/89] Compiling SwiftSyntax SyntaxDeclNodes.swift
[48/89] Compiling SwiftSyntax SyntaxExprNodes.swift
[49/89] Compiling SwiftSyntax SyntaxNodes.swift
[50/89] Compiling SwiftSyntax SyntaxPatternNodes.swift
[51/89] Compiling SwiftSyntax SyntaxStmtNodes.swift
[52/89] Compiling SwiftSyntax SyntaxTypeNodes.swift
[53/89] Compiling SwiftSyntax SyntaxCollections.swift
[54/89] Compiling SwiftSyntax SyntaxEnum.swift
[55/89] Compiling SwiftSyntax SyntaxKind.swift
[56/89] Compiling SwiftSyntax SyntaxRewriter.swift
[57/89] Compiling SwiftSyntax SyntaxTraits.swift
[58/89] Compiling SwiftSyntax SyntaxTransform.swift
[59/89] Compiling SwiftSyntax AbsolutePosition.swift
[60/89] Compiling SwiftSyntax Assert.swift
[61/89] Compiling SwiftSyntax BumpPtrAllocator.swift
[62/89] Compiling SwiftSyntax CommonAncestor.swift
[63/89] Compiling SwiftSyntax Convenience.swift
[64/89] Compiling SwiftSyntax MemoryLayout.swift
[65/89] Compiling SwiftSyntax MissingNodeInitializers.swift
[66/89] Compiling SwiftSyntax SyntaxVisitor.swift
[67/89] Compiling SwiftSyntax TokenKind.swift
[68/89] Compiling SwiftSyntax Tokens.swift
[69/89] Compiling SwiftSyntax TriviaPieces.swift
[70/89] Compiling SwiftSyntax RawSyntaxNodes.swift
[71/89] Compiling SwiftSyntax RawSyntaxValidation.swift
[72/90] Wrapping AST for SwiftSyntax for debugging
[74/141] Compiling SwiftDiagnostics Message.swift
[75/141] Compiling SwiftDiagnostics Note.swift
[76/141] Emitting module SwiftDiagnostics
[77/141] Compiling SwiftDiagnostics Convenience.swift
[78/141] Compiling SwiftDiagnostics Diagnostic.swift
[79/141] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[80/141] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[81/141] Compiling SwiftBasicFormat Syntax+Extensions.swift
[82/141] Compiling SwiftDiagnostics FixIt.swift
[83/141] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[84/141] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[85/142] Wrapping AST for SwiftDiagnostics for debugging
[87/142] Compiling SwiftBasicFormat BasicFormat.swift
[88/142] Emitting module SwiftBasicFormat
[89/143] Wrapping AST for SwiftBasicFormat for debugging
[91/143] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[92/143] Compiling SwiftParser StringLiterals.swift
[93/143] Compiling SwiftParser SwiftParserCompatibility.swift
[94/143] Compiling SwiftParser SyntaxUtils.swift
[95/143] Compiling SwiftParser TokenConsumer.swift
[96/148] Compiling SwiftParser TokenPrecedence.swift
[97/148] Compiling SwiftParser TokenSpec.swift
[98/148] Compiling SwiftParser TokenSpecSet.swift
[99/148] Compiling SwiftParser TopLevel.swift
[100/148] Compiling SwiftParser TriviaParser.swift
[101/148] Emitting module SwiftParser
[102/148] Compiling SwiftParser Modifiers.swift
[103/148] Compiling SwiftParser Names.swift
[104/148] Compiling SwiftParser Nominals.swift
[105/148] Compiling SwiftParser Parameters.swift
[106/148] Compiling SwiftParser ParseSourceFile.swift
[107/148] Compiling SwiftParser Lexer.swift
[108/148] Compiling SwiftParser RegexLiteralLexer.swift
[109/148] Compiling SwiftParser UnicodeScalarExtensions.swift
[110/148] Compiling SwiftParser Lookahead.swift
[111/148] Compiling SwiftParser LoopProgressCondition.swift
[112/148] Compiling SwiftParser Parser.swift
[113/148] Compiling SwiftParser Patterns.swift
[114/148] Compiling SwiftParser Recovery.swift
[115/148] Compiling SwiftParser Specifiers.swift
[116/148] Compiling SwiftParser Statements.swift
[117/148] Compiling SwiftParser ExperimentalFeatures.swift
[118/148] Compiling SwiftParser Expressions.swift
[119/148] Compiling SwiftParser IncrementalParseTransition.swift
[120/148] Compiling SwiftParser Cursor.swift
[121/148] Compiling SwiftParser Lexeme.swift
[122/148] Compiling SwiftParser LexemeSequence.swift
[123/148] Compiling SwiftParser Attributes.swift
[124/148] Compiling SwiftParser Availability.swift
[125/148] Compiling SwiftParser CharacterInfo.swift
[126/148] Compiling SwiftParser CollectionNodes+Parsable.swift
[127/148] Compiling SwiftParser Declarations.swift
[128/148] Compiling SwiftParser Directives.swift
[129/148] Compiling SwiftParser Types.swift
[130/148] Compiling SwiftParser IsLexerClassified.swift
[131/148] Compiling SwiftParser LayoutNodes+Parsable.swift
[132/148] Compiling SwiftParser Parser+TokenSpecSet.swift
[133/148] Compiling SwiftParser TokenSpecStaticMembers.swift
[134/149] Wrapping AST for SwiftParser for debugging
[136/172] Compiling SwiftOperators PrecedenceGroup.swift
[137/173] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[138/174] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[139/174] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[140/174] Compiling SwiftParserDiagnostics MissingNodesError.swift
[141/174] Compiling SwiftParserDiagnostics MissingTokenError.swift
[142/174] Compiling SwiftOperators OperatorTable+Folding.swift
[143/174] Compiling SwiftOperators OperatorTable+Semantics.swift
[144/174] Compiling SwiftOperators OperatorTable.swift
[145/174] Compiling SwiftOperators PrecedenceGraph.swift
[146/174] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[147/174] Compiling SwiftOperators SyntaxSynthesis.swift
[148/174] Emitting module SwiftOperators
[150/175] Emitting module SwiftParserDiagnostics
[150/175] Wrapping AST for SwiftOperators for debugging
[152/175] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[153/175] Compiling SwiftParserDiagnostics Utils.swift
[154/175] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[155/175] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[156/175] Compiling SwiftParserDiagnostics PresenceUtils.swift
[159/175] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[160/175] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[163/176] Wrapping AST for SwiftParserDiagnostics for debugging
[165/190] Compiling SwiftSyntaxBuilder Indenter.swift
[166/190] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[167/191] Emitting module SwiftSyntaxBuilder
[168/191] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[169/191] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[170/191] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[171/191] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[172/191] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[173/191] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[174/191] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[175/191] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[176/191] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[177/191] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[178/191] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[179/191] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[180/192] Wrapping AST for SwiftSyntaxBuilder for debugging
[182/206] Compiling SwiftSyntaxMacros AccessorMacro.swift
[183/206] Compiling SwiftSyntaxMacros AttachedMacro.swift
[184/206] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[185/206] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[186/207] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[187/207] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[188/207] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[189/207] Compiling SwiftSyntaxMacros Macro+Format.swift
[190/207] Compiling SwiftSyntaxMacros Macro.swift
[191/207] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[192/207] Compiling SwiftSyntaxMacros MemberMacro.swift
[193/207] Compiling SwiftSyntaxMacros PeerMacro.swift
[194/207] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[195/207] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[196/207] Emitting module SwiftSyntaxMacros
[197/208] Wrapping AST for SwiftSyntaxMacros for debugging
[199/216] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[200/216] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[201/216] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[202/216] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[203/216] Emitting module SwiftSyntaxMacroExpansion
[204/216] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[205/216] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[206/216] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[207/217] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[209/224] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[210/224] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[211/224] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[212/224] Emitting module SwiftCompilerPluginMessageHandling
[213/224] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[214/224] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[215/224] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[216/225] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[218/227] Emitting module SwiftCompilerPlugin
[219/227] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[220/228] Wrapping AST for SwiftCompilerPlugin for debugging
[222/231] Emitting module EmailValidationMacros
[223/231] Compiling EmailValidationMacros EmailValidationMacroError.swift
[224/231] Compiling EmailValidationMacros EmailValidationMacro.swift
/host/spi-builder-workspace/Sources/EmailValidationMacros/EmailValidationMacro.swift:52:26: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let emailPredicate = NSPredicate(format: "SELF MATCHES %@", emailRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/20] Write swift-version-24593BA9C3E375BF.txt
[2/10] Emitting module EmailValidationMacros
[3/10] Compiling EmailValidationMacros EmailValidationMacro.swift
/host/spi-builder-workspace/Sources/EmailValidationMacros/EmailValidationMacro.swift:52:26: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
let emailPredicate = NSPredicate(format: "SELF MATCHES %@", emailRegex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
error: fatalError
BUILD FAILURE 5.10 linux