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

Change the version check invocation in install.ps1 #2708

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomrittervg
Copy link

When install.ps1 is executed inside MSYS (or cygwin I suspect) cmd
is a shell script that invokes the real cmd. But in install.ps1 it
tries to open this shell script instead of executing it.

AFAICT the only reason to use cmd /c is to capture stderr because
there is a bug with powersehll; but fzf prints the version information
on stdout so we don't need to care about stderr. So we can just call
the binary directly. This avoids the cmd issues.


This is desirable because 0.23.0 removed x86 windows binaries, meaning the ./install script no longer works if you are in an x86 shell. This affects Firefox developers in particular because our build environment tries to install fzf automatically but MozillaBuild is 32-bit causing it to fail.

When install.ps1 is executed inside MSYS (or cygwin I suspect) cmd
is a shell script that invokes the real cmd.  But in install.ps1 it
tries to open this shell script instead of executing it.

AFAICT the only reason to use cmd /c is to capture stderr because
there is a bug with powersehll; but fzf prints the version information
on stdout so we don't need to care about stderr.  So we can just call
the binary directly.  This avoids the cmd issues.
@junegunn
Copy link
Owner

@bkloster @jiangjianshan Hi, can you review this patch?

@tomrittervg
Copy link
Author

FWIW Mozilla has decided to resolve this in a different way, so we no longer need this patch. I won't close the PR, but feel free to as this is an unusual execution environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants