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

SwiftLint not work with platform=linux/amd64 #5514

Open
gulivero1773 opened this issue Mar 29, 2024 · 4 comments · May be fixed by #5866
Open

SwiftLint not work with platform=linux/amd64 #5514

gulivero1773 opened this issue Mar 29, 2024 · 4 comments · May be fixed by #5866
Labels
help Questions or user problems that require more explanation rather than code changes. integration Issues related to integration of SwiftLint into toolchains.

Comments

@gulivero1773
Copy link

I download binary file of latest version.
If I use FROM --platform=linux/amd64 swift:5.9-jammy in my CI/CD
It show to me - error: Tool ‘swiftlint’ is not supported on the target platform

@SimplyDanny SimplyDanny added help Questions or user problems that require more explanation rather than code changes. integration Issues related to integration of SwiftLint into toolchains. labels Mar 29, 2024
@mikaelbartlett
Copy link

I wonder if it's possible to have a SwiftLintBinary-macos.artifactbundle.zip for Linux?

Having the same issue and using SPM with the build plugin. If possible to create a binary target it would be quite easy to support?

https://github.com/SimplyDanny/SwiftLintPlugins

@SimplyDanny
Copy link
Collaborator

As for my knowledge, SPM doesn't support binary targets on Linux.

A pre-compiled executable for arm64 on Linux should be possible though.

@mikaelbartlett
Copy link

Sorry know very little about these bundles....

@SimplyDanny I looked at the following... Maybe these are not the same thing? I've not looked into it much and sorry to waste your time if this is unrelated.
https://www.polpiella.dev/binary-targets-in-modern-swift-packages

@SimplyDanny
Copy link
Collaborator

You're right. This seems to be possible. We could either have a single artifactbundle or two separate ones for macOS and Linux. What's left is the build for the Linux arm64 target.

@bradleymackey bradleymackey linked a pull request Nov 23, 2024 that will close this issue
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. integration Issues related to integration of SwiftLint into toolchains.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants