Closed directionless closed 1 month ago
I was perusing bugsnag, and I noticed we have a lot of errors because the homebrew table can't find homebew.
error generating table: failure allocating allowedcmd.Brew: homebrew not found
and
error generating table: failure allocating allowedcmd.Brew: not found: /home/linuxbrew/.linuxbrew/bin/brew
This is coming from https://github.com/kolide/launcher/blob/766d939df65f7584e5fe8aedfc288d00efc610fc/ee/tables/homebrew/upgradeable.go#L45-L48
For this table, I think we should identify that error, and return no results.
Digging in slightly, it seems like validatedCommand should have returned a different error, so I wonder if something is slightly amiss here.
validatedCommand
In terms of solutions, it's probably more correct to plumb a custom error.
Can I work on this issue?
@Dharma-09 Sure, you're welcome to take a try. We're likely to pick it up in the next couple weeks if it's still waiting
Fixed By https://github.com/kolide/launcher/pull/1872
I was perusing bugsnag, and I noticed we have a lot of errors because the homebrew table can't find homebew.
and
This is coming from https://github.com/kolide/launcher/blob/766d939df65f7584e5fe8aedfc288d00efc610fc/ee/tables/homebrew/upgradeable.go#L45-L48
For this table, I think we should identify that error, and return no results.
Digging in slightly, it seems like
validatedCommand
should have returned a different error, so I wonder if something is slightly amiss here.In terms of solutions, it's probably more correct to plumb a custom error.