Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSwitch back to Hoek.clone from lodash.deepClone. #898
Conversation
Fix lint-md script in package.json to work on Windows.
This comment has been minimized.
This comment has been minimized.
With this patch, you should have no issues with a set of Windows builds on Travis. Can we do that too as part of this PR? :) |
This comment has been minimized.
This comment has been minimized.
@Invader444 Awesome! Yes please update this PR with
for travis |
This comment has been minimized.
This comment has been minimized.
Well.. that is bizarre! I have no such errors in my test output! Ill look into this more tomorrow :/ |
This comment has been minimized.
This comment has been minimized.
Classic |
This comment has been minimized.
This comment has been minimized.
Ohhh. Git needs to checkout without auto crlf? |
This comment has been minimized.
This comment has been minimized.
We rather need to test with regexps matching both cases. |
This comment has been minimized.
This comment has been minimized.
lol!
::sigh:: I'm not sure why I don't see these Windows errors, although, for one thing I am getting unix-style newlines in my output... perhaps because of nvm? |
This comment has been minimized.
This comment has been minimized.
@geek, does that coverage report make sense to you? It looks like the line numbers may be inaccurate... :( |
This comment has been minimized.
This comment has been minimized.
@Invader444 that missing coverage appears to be related to the supports color tty detection. We are using an outdated version and may just need to update to the latest. |
This comment has been minimized.
This comment has been minimized.
With latest commit:
|
This comment has been minimized.
This comment has been minimized.
@geek any other ideas? :( |
This comment has been minimized.
This comment has been minimized.
@Invader444 thoughts on removing windows from travis until we can sort out the build issue? If we revert the travis change then I'll go ahead and merge/release and we can come back to build issues. |
Use rimraf.sync instead of fs.rmdirSync to delete directories in tests, in order to prevent spurious ENOENT errors on Windows.
9829d3c
to
47fa336
Coverage should not be dependent on the build environment's console, and Travis CI seems to set process.stdout.isTTY to false on its Windows environment.
This comment has been minimized.
This comment has been minimized.
Eureka! A few more tweaks were needed, but it seems to be working now :) process.stdout.isTTY is false for windows travis builds... they've done this before too: chalk/supports-color#63 Ideally this would be fixed in supports-color upstream, but looks like they won't do that as the last time they tried in the above PR it broke backwards compatibility for some of their package's consumers. |
This comment has been minimized.
This comment has been minimized.
@Invader444 thanks a lot for your help. This is now published as 18.0.1 |
Invader444 commentedNov 24, 2018
Fix lint-md script in package.json to work on Windows.