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

feat: Search for a variety of grain CLIs in PATH #111

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

phated
Copy link
Member

@phated phated commented Jun 2, 2022

Closes #48
Closes #88

This uses the which package from npm to locate grain executables within a user's path. I found a weird edge case in testing on Windows related to capitalized .EXE that I also "fixed" with a workaround.

Copy link
Member

@marcusroberts marcusroberts left a comment

Choose a reason for hiding this comment

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

That EXE is a weird one, I guess case sensitivity on Linux file systems?

Looks great!

@phated
Copy link
Member Author

phated commented Jun 2, 2022

That EXE is a weird one, I guess case sensitivity on Linux file systems?

This only happened to me on Windows. I think it's related to some execSync logic inside of pkg, but I don't want to figure out why

@phated phated merged commit 28e1e9c into master Jun 2, 2022
@phated phated deleted the phated/which-grain branch June 2, 2022 18:48
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.

Refactor how we locate the Grain executable Search for available Grain binaries
3 participants