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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build SwiftLint in Swift 5.9 and 5.10 with Linux #5847

Open
2 tasks done
417-72KI opened this issue Nov 5, 2024 · 2 comments
Open
2 tasks done

Failed to build SwiftLint in Swift 5.9 and 5.10 with Linux #5847

417-72KI opened this issue Nov 5, 2024 · 2 comments
Labels
help Questions or user problems that require more explanation rather than code changes.

Comments

@417-72KI
Copy link
Contributor

417-72KI commented Nov 5, 2024

New Issue Checklist

Bug Description

#8 500.6 /tmp/mint/github.com_realm_SwiftLint/Source/SwiftLintFramework/UpdateChecker.swift:46:44: error: value of type 'URLSession' has no member 'data'
#8 500.6         return try await URLSession.shared.data(for: request).0
#8 500.6                          ~~~~~~~~~~~~~~~~~ ^~~~
#8 500.6 /tmp/mint/github.com_realm_SwiftLint/Source/SwiftLintFramework/UpdateChecker.swift:46:20: warning: no 'async' operations occur within 'await' expression
#8 500.6         return try await URLSession.shared.data(for: request).0
#8 500.6                    ^
#8 500.6 /tmp/mint/github.com_realm_SwiftLint/Source/SwiftLintFramework/UpdateChecker.swift:46:16: warning: no calls to throwing functions occur within 'try' expression
#8 500.6         return try await URLSession.shared.data(for: request).0
#8 500.6                ^
#8 500.6 error: fatalError
#8 500.6 🌱 Encountered error during "swift build -c release --product swiftlint"

Mention the command or other SwiftLint integration method that caused the issue. Include stack traces or command output.

$ mint install --verbose realm/SwiftLint

Environment

  • SwiftLint version (run swiftlint version to be sure)
    • main branch
  • Xcode version (run xcodebuild -version to be sure)
    • N/A
  • Installation method used (Homebrew, CocoaPods, building from source, etc)
    • Mint
  • Configuration file:
    • N/A
@SimplyDanny
Copy link
Collaborator

To build on Linux, Swift 6 is required. That is a deliberate decision.

@SimplyDanny SimplyDanny added the help Questions or user problems that require more explanation rather than code changes. label Nov 5, 2024
@SimplyDanny
Copy link
Collaborator

Does this cause significant issues for you or does it block any of your activities, @417-72KI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Questions or user problems that require more explanation rather than code changes.
Projects
None yet
Development

No branches or pull requests

2 participants