Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running (or rather, building) swiftlint 0.50.0-rc.1 fails #250

Closed
gereons opened this issue Oct 17, 2022 · 4 comments 路 Fixed by #251
Closed

Running (or rather, building) swiftlint 0.50.0-rc.1 fails #250

gereons opened this issue Oct 17, 2022 · 4 comments 路 Fixed by #251

Comments

@gereons
Copy link

gereons commented Oct 17, 2022

Running mint run swiftlint fails:

mint run swiftlint
馃尡 Finding latest version of swiftlint
馃尡 Cloning swiftlint 0.50.0-rc.1
馃尡 Resolving package
馃尡 Building package
Compiling plugin SwiftLintPlugin...
Building for production...
[0/13] Compiling Clang_C Clang_C.c
[1/13] Compiling SourceKit SourceKit.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[2/15] Compiling reader.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[3/16] Compiling parser.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[4/16] Compiling api.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[5/17] Compiling writer.c
[7/18] Compiling CollectionConcurrencyKit CollectionConcurrencyKit.swift
[7/18] Compiling emitter.c
[8/18] Compiling scanner.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[10/19] Compiling ArgumentParserToolInfo ToolInfo.swift
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[11/20] Compiling SwiftyTextTable TextTable.swift
[12/20] Compiling SWXMLHash XMLAttributeDeserializable.swift
[13/20] Compiling Yams Constructor.swift
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[14/21] Compiling ArgumentParser BashCompletionsGenerator.swift
[15/21] Compiling SourceKittenFramework ByteCount.swift
[16/21] Compiling SwiftSyntax AbsolutePosition.swift
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[16/23] Archiving libSwiftSyntax.a
[18/23] Compiling SwiftDiagnostics Diagnostic.swift
[19/23] Compiling SwiftBasicFormat Trivia+Indented.swift
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[20/24] Compiling SwiftParser Attributes.swift
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[20/26] Archiving libSwiftParser.a
[22/26] Compiling SwiftOperators Operator.swift
[22/26] Archiving libSwiftOperators.a
[24/26] Compiling SwiftSyntaxBuilder BuildBuildable.swift
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[24/27] Archiving libSwiftSyntaxBuilder.a
[26/27] Compiling SwiftLintFramework RuleDocumentation.swift
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[27/29] Compiling swiftlint Analyze.swift
[28/29] Compiling SwiftLintTestHelpers RuleDescription+Examples.swift
/private/var/folders/1p/wpwdypm96_s5zfwxxzvwwp0m0000gn/T/mint/github.com_realm_swiftlint/Tests/SwiftLintTestHelpers/TestHelpers.swift:3:18: error: module 'SwiftLintFramework' was not compiled for testing

@testable import SwiftLintFramework
~~~~~~~~~~       ^
swift_driver/main.swift:42: Fatal error: Invalid state, could not kill process
[28/29] Linking swiftlint
馃尡 Encountered error during "swift build -c release -Xswiftc -target -Xswiftc arm64-apple-macosx12.6". Use --verbose to see full output
馃尡  Failed to build swiftlint 0.50.0-rc.1 with SPM

This was reported in the swiftlint repo as realm/SwiftLint#4341 and the solution appears to be to add additional parameters (--product swiftlint) to the compiler invocation.

Is there a way to do this in mint?

@417-72KI
Copy link
Contributor

417-72KI commented Oct 21, 2022

I tried to apply the solution on build command inside Mint, and seems to be fine 馃槉.
#251

@mthole
Copy link

mthole commented Nov 18, 2022

The above solution worked for me as well. @yonaskolb , would it be possible to get a release out with this fix?

@acosmicflamingo
Copy link

Getting a release with that fix would be great indeed :D

@yonaskolb
Copy link
Owner

Released in 0.17.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants