Repository navigation
Add windows support - #194
abelsromero wants to merge 5 commits into
Conversation
|
If someone runs The only real failures are in |
|
Thanks @abelsromero for putting together this nice set of enhancments. What about WSL support, since kscript would run under linux in a bash-environment, I wonder if the changes in this PR are compatible with it?
Clearly CI support for windows would be nice. However, since the majority of users is using bash (since 'kscripts'`s original intent was to be a bash interpreter for kotlin, I actually also consider the test-suite as a a usage set of examples/part of the documentation.
Since defined interpreters in the shebang line is really a bash-feature, I'm not sure how this is compatible with the windows shell in general. Let me know if you need any help. |
Good point! I just checked and found 2 issues that doesn't happen on a Linux.
|
|
I would have guessed that at least custom interpreters should run smoothly under WSL. Luckily they at least fail with 1 so it should be rather easy to debug. |
|
I got everything working but this, which also fails on a Manjaro VM, but not in Travis. I am really confused. However, as reported in the other issue, I found that the last update of gradle breaks packaging 😭 @holgerbrandl what do you think should be next steps? fix the gradle issue or merge this? |
|
btw, I changed the travis script to install gradle 4.10.2 |
|
You mentioned that the PR is almost ready. Could you let me know when it's complete from your end so that I could start testing it? |
|
It is ready now, I found a false positive and fixed it. Tests are not best, but they suffice for now, until I have a better understanding of all the parts I don't dare refactor much. I've been also checking (very lighlty) travisCI for windows and it includes gitbash, so it would be possible to use the same batch of tests. However, I'd rather add it in another PR unless you consider otherwise. |
|
I won't merge this PR because kscript seems to work fine now under gitbash after minor modifications to its launcher and because of the new aether based dependency resolver. Thank you for your understanding and support. |
This is still WIP, 99% is done, only errors unknown to me are idea IT test.
Just want to share it in case some one has some comment.
Other than that, still missing the Windows CI. About that, I am considering removing the bash script and rewriting it in kotlin so it can be executed from gradle in a specific task, wdyt? maybe in another PR?