-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Pkg.submit doesn't work on windows; no which #5937
Comments
I just found a superuser question that suggests using http://superuser.com/questions/34492/powershell-equivalent-to-unix-which-command |
Oh Windows. Well, if you can patch this to work on Windows using |
In msysgit, |
I think you can just eagerly execute the curl command, since you can distinguish between process failed and process not found. (or, like WinRPM, you could use IE to download files, since that's likely to be properly configured on windows to punch through the firewall as needed, and it's always available) |
Yeah, that's a good point. |
Should we still check for curl on unix then? And just eval on windows? I can patch this up quick if so. |
Fix #5937 by removing dependency on which
Not sure why, but it seems that mingw64/msys2 don't come with a working version of
which
(there seems to be something in msys2, but it said it was 32-bit for me...). Anyway, this preventsPkg.submit
from working because of the call tosuccess("which curl') || error(...
. My system does, however, have a working version of curl and commenting ou the success call allowed me to use the machinery just fine. Not sure the best way to check if a program exists on windows or if it just letting it error out is ok.The text was updated successfully, but these errors were encountered: