Handle SwiftLint version 0.60.0 and above#6
Merged
klundberg merged 3 commits intoklundberg:masterfrom Sep 5, 2025
Merged
Conversation
What changed
- Linux archives now use arch-specific names from 0.60.0 onward:
- 0.60.0+ → swiftlint_linux_amd64.zip or swiftlint_linux_arm64.zip
- < 0.60.0 → swiftlint_linux.zip (unchanged)
- Architecture detection via uname -m:
- x86_64/amd64 → amd64
- aarch64/arm64 → arm64
- macOS remains portable_swiftlint.zip as before.
Files updated
- bin/install:
- Adds semantic version parsing and comparison.
- Selects correct Linux archive based on version and arch.
- Errors on unsupported Linux architectures.
Validation
- Verified 0.60.0 on simulated Linux/arm64 downloads swiftlint_linux_arm64.zip.
- Verified 0.59.0 on simulated Linux downloads legacy swiftlint_linux.zip.
Contributor
Author
* Update test.yml * Update test.yml * Replace asdf with mise in GitHub Actions workflow Switch from asdf to mise for testing the SwiftLint plugin in CI. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Use mise plugin link instead of plugin install Replace 'mise plugin install' with 'mise plugin link' for local plugin testing. This is the correct way to test a local plugin directory with mise. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Contributor
|
Is it expected to use mise for testing now? 🤔 |
ilaumjd
approved these changes
Sep 4, 2025
Owner
|
Thank you for the contribution to keep this working on linux! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Files updated
Validation