-
Notifications
You must be signed in to change notification settings - Fork 42
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
Build Task fails on windows due to OS separator #22
Comments
Grunt uses minimatch. minimatch says no to backslashes: if (platform === "win32") {
pattern = pattern.split("\\").join("/")
} |
I've been doing some tests on windows and found this:
The findCommonRoot function in fileutil is getting a list of files with the separator '/' but uses the separator from path.sep, which is '' on Windows. If you hardcode it to '/' it works well. |
I've been looking at this issue and have been able to compile the |
@lmarkus I can now compile on Windows all dust templates and generate the .js files. The problem is that I still have the 500 error when running node on production mode... |
Can you point me to the repo where you've been doing the work? |
I've been doing this locally on my pc but I've forked makara just now so I 2014-01-27 Lenny Markus notifications@github.com
|
https://github.com/AlexSantos/makara/blob/fix-windows-build/tasks/dustjs-i18n.js 2014-01-27 Alexandre Santos santosam72@gmail.com
|
@lmarkus , I hope it helped to solve the problem. |
Fixed via d77202e |
@alexsantos Part of the solution 😄 |
Looks like Grunt expands patterns like
**/*.dust
and**\\*.dust
with no regard to the host OS path separator. It's always a/
Under Windows, this causes issues with the following code:
Proper solution: Find a way for the globbing to respect the OS separator.
Very ugly workaround 💩 : Assume that everything works with
/
. Don't like the brittleness of this and would only use it as a last resort.The text was updated successfully, but these errors were encountered: