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

use err for lookpath #118

Merged
merged 2 commits into from
Nov 27, 2023
Merged

use err for lookpath #118

merged 2 commits into from
Nov 27, 2023

Conversation

eemcmullan
Copy link
Collaborator

Closes #113

Signed-off-by: Emily McMullan <[email protected]>
podmanPath, _ := exec.LookPath("podman")
podmanPath, err := exec.LookPath("podman")
if err != nil {
return err
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the idea was to only error when you see a errors.Is(err, ErrDot)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pranavgaikwad Looks like exec.ErrDot requires go 1.19: https://pkg.go.dev/os/exec
We may need to update the Dockerfile too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, analyzer-lsp is using 19 as well

Signed-off-by: Emily McMullan <[email protected]>
@eemcmullan eemcmullan merged commit 8022770 into konveyor:main Nov 27, 2023
2 checks passed
@eemcmullan eemcmullan deleted the err branch January 23, 2024 16:03
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.

[BUG] Don't Eat Error on looking up podman exec path error
2 participants