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

return proper error for homebrew not found on macos #2103

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

zackattack01
Copy link
Contributor

we had previously made updates to ensure we don't error out table generation for devices that just don't have homebrew installed. this logic was added to validatedCommand, but unfortunately for macos devices we check two possible locations with validatedCommand and then explicitly return an error that would not be matched by errors.Is(err, allowedcmd.ErrCommandNotFound). this updates the brew command for macos to return the correct error in these cases

@zackattack01 zackattack01 added the bug-fixes Bug Fixes label Feb 13, 2025
@zackattack01 zackattack01 added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit 8327e0e Feb 13, 2025
33 checks passed
@zackattack01 zackattack01 deleted the zack/fix_homebrew_notfound branch February 13, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fixes Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants