Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Conversation

@SimplyDanny
Copy link
Collaborator

Currently, whenever I open a workspace, the extension needs an unreasonable amount of time to build swiftlint in release mode, blocking other activity on the Swift package from progressing.

Taking the locally built binary is a nice feature, yet the overhead doesn't justify the benefit. Also, I found it quite surprising that the local version was preferred over the globally installed swiftlint binary even though I configured swiftlint.path specifically.

I think that restricting all this to swiftlint.onlyEnableOnSwiftPMProjects makes sense. If you enable it now, the extension makes sure to build the package and restricts itself to the local binary ignoring swiftlint.path.

This also resolves #99, I assume.

@vknabel
Copy link
Owner

vknabel commented Mar 27, 2025

Hi @SimplyDanny and thanks for your contribution! I'll have a deeper look on this soon. Could you replicate the same PR for the following extensions to keep them in sync? Thanks in advance. Feel free to @ me and assign me as reviewer if you can. :)

@SimplyDanny
Copy link
Collaborator Author

Could you replicate the same PR for the following extensions to keep them in sync?

Sure. I can do that. Let's maybe first get this reviewed and merged. So I can replicate the accepted changes on the other two projects without much back and forth.

@Ernest0-Production
Copy link

Great job! I'm really looking forward to when this PR will be merged.

@vknabel
Copy link
Owner

vknabel commented Apr 11, 2025

Finally I found some time to prepare my environment and give your PR a try. Works perfectly!
I‘ll grant you some permissions on this repo. Feel free to review and merge stuff!

@vknabel vknabel merged commit 883e9ce into vknabel:main Apr 11, 2025
1 check passed
@SimplyDanny SimplyDanny deleted the restrict-build-to-spm branch April 11, 2025 18:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable automatic SPM resolve when binary path provided

3 participants