Repository navigation
Add windows support - #236
Conversation
|
Looks like
|
|
Wow, I was looking for the difference between these two modules and I completely missed that... So I decided to take the one with the most downloads. Thanks for notifying! |
|
Thanks! Did you test this on Windows? |
|
I did test it quickly by hand on a Windows machine and it seemed to work, but there is still some work to do for all the tests to pass on Windows. I'll fix the tests for Windows in one of the following days. Adding a Windows CI build using appveyor as in #230 is the next step to verify this automatically. |
|
I already made some progress making the tests pass on Windows using appveyor but I don't have access to a Windows machine right now, which makes testing difficult because of slow feedback cycles. I'll continue when I have access to a Windows machine where I can run the tests locally. |
|
Ok, I will do this and continue testing |
|
Is it going to be merged? Lerna bootstrap is currently not usable on Windows |
|
I could not find any free time to work on this but I'll continue working on this PR, the moment my schedule allows it |
|
I might be able to work on this today. Have you pushed your latest changes? |
|
@laurentdesmet, I rebased your changes on master and #171 then fixed the tests that were not passing on my Windows 10. I am going to make a pull request to your fork now |
|
I merged the changes into the master branch of my fork, locally on my machine (Mac) all the tests passed for all Node versions (also v0.10.46), but they did fail on Travis and AppVeyor. I should configure my Windows machine (which is not used for months now...) to test it locally on Windows. But because the tests where passing on your machine, it seems something AppVeyor related makes the test fail. |
|
AppVeyor is slower than Travis, so the 3 timeout issues should be fixed by simply increasing the timeouts for those tests The 4th failed test seems to be Windows related because the line ending didn't match. It is weird though that on my machine that test passed. |
|
Ok, Travis tests do pass now (https://travis-ci.org/laurentdesmet/lerna/builds/144003698) but I didn't change anything, just made a separate branch. This nondeterministic test results are a little bit annoying... Gonna check if I can find the cause of them. |
|
I found out why the 4th test failed on your machine. On line 265 of |
|
Good job! I am super happy the latest lerna will work on Windows with no more issues! |
| { args: ["git checkout -- packages/*/package.json"] }, | ||
|
|
||
| { args: ["npm dist-tag ls package-1"], returns: "lerna-temp: 1.0.0-alpha.81e3b443\nstable: 1.0.0" }, | ||
| { args: ["npm dist-tag ls package-1"], returns: "lerna-temp: 1.0.0-canary.81e3b443" + EOL + "stable: 1.0.0" }, |
There was a problem hiding this comment.
Why is alpha being turned into canary. We definitely do not want canary #166
There was a problem hiding this comment.
does this need to be rebased?
|
will this be merged? |
|
Yeah there was #236 (diff) so need to look at the test output more carefully- maybe it just needs to be rebased? |
|
Sorry for the lack of response, had some busy weeks. I rebased my master branch on top of the lerna:master branch. Node.js 0.10 and 0.12 are temporarily commented out now in the appveyor configuration file, I'll investigate this during the weekend because this lead to some problems if I remember well. Some other stuff I can help with? |
|
aaa4cdb replaced alpha by canary, but I see no reason why, so I reverted this change. I also added the node versions 0.10, 1.12, 5 and 6 to the appveyor CI configuration file. I think there is one more thing we can do to polish the PR a little bit more: now we put |
|
Hi @laurentdesmet - I just pushed a branch with this PR rebased onto current master, and appveyor failed on node 0.12. Looks like it didn't make it past |
Fix on Windows the "ImportCommand: should fail if repo has uncommitted changes" unit test
|
@gigabo I rebased this branch on top of master (that was updated with another two commits since your rebase) and it succeeds now. So no idea what the problem was, didn't check the changes from the last two commits on master. |
|
Great! Must have been a spurious failure... thanks for getting up to date. The So, this looks good to me. @hzoo, @thejameskyle? |
|
Yeah lets do it in a follow up pr then? It's been a too long for these changes so we should get them in. 🎉 |
|
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See #226