fix: handle zizmor not found case gracefullier #28
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.
Pre-submission checks
Please check these boxes:
Mandatory: This PR corresponds to an issue (if not, please create
one first).
I hereby disclose the use of an LLM or other AI coding assistant in the
creation of this PR. PRs will not be rejected for using AI tools, but
will be rejected for undisclosed use.
Summary
On macOS, apps don't pick up the path, so you'd have to manually set the zizmor (see #27). This adds in support for falling back to commonly installed locations. This also handles the case that exePath is an empty string, as the setting GUI is prone to do (as I discovered in testing).
Fixes #29
The implementation is
shameless copiedheavily based & modified from JJK's implementation [MIT], and also includes portions ofwhich[ISC] & (trivially)@types/which[MIT].Test Plan
Test with it in path, not in path, etc etc.
Seemed to work for me but should check on Windows, etc.