-
Notifications
You must be signed in to change notification settings - Fork 24
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
Cygwin support #43
Comments
I'm not familiar with cygwin so I need to look into it, also some more information would be helpful:
|
installed via |
elm-github-install in windows runs with a portable ruby environment called traveling-ruby this means that it uses windows paths, the git commands in cygwins accepts linux paths which leads to a conflict. It is probably possible to detect if the environment is cygwin and then the paths can be converted with You could try:
|
Trying to install everything outside cygwin now https://github.com/gdotdesign/elm-github-install/releases/download/v1.4.0/elm-install-1.4.0-win32.zip is not completely portable because its assumed git is installed.
I did that, but ran into more path errors. Trying to use the linux release in cygwin doesn't work too. |
Running elm-install on cygwin produces errors:
I've debugged further and it turns out that
path
here is receiving a path with the windows volume:C:/work/ext/cygwin/home/user/.elm-install/github.com/NoRedInk/elm-decode-pipeline
The problem with this is that when passed to
git
,git
interpretsC:/.....
as a path relative to pwd, hence we see the invalid path/cygdrive/c/work/project/C:/work
in the error above.After monkey patching the paths to have a proper absolute Unix path, we get more errors:
Afraid I've hit a wall here as I'm not a ruby expert.
The text was updated successfully, but these errors were encountered: