Skip to content

Handle SwiftLint version 0.60.0 and above#6

Merged
klundberg merged 3 commits intoklundberg:masterfrom
erichoracek:eh-handle-swiftlint-0-60-0
Sep 5, 2025
Merged

Handle SwiftLint version 0.60.0 and above#6
klundberg merged 3 commits intoklundberg:masterfrom
erichoracek:eh-handle-swiftlint-0-60-0

Conversation

@erichoracek
Copy link
Contributor

What changed

  • Linux archives now use arch-specific names from 0.60.0 onward (see release notes):
    • 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.

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.
@erichoracek
Copy link
Contributor Author

cc @klundberg @ilaumjd

jdx and others added 2 commits September 3, 2025 18:36
* 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>
@ilaumjd
Copy link
Contributor

ilaumjd commented Sep 4, 2025

Is it expected to use mise for testing now? 🤔
Anyway lgtm, please check @klundberg

@klundberg
Copy link
Owner

Thank you for the contribution to keep this working on linux!

@klundberg klundberg merged commit 2738a9a into klundberg:master Sep 5, 2025
3 checks passed
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 this pull request may close these issues.

4 participants