-
Notifications
You must be signed in to change notification settings - Fork 191
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
Windows file tasks with drive letter break #318
Comments
I think the issue has to do with the way we split on ":" here. |
Thanks Mark! For completeness, can you include a sample error as well?
|
@welearnednothing sure thing. Here's a sample Jakefile var fs = require('fs');
var path = require('path');
var foo = path.join(__dirname, 'foo');
file(foo, function() {
fs.closeSync(fs.openSync(foo, 'w'));
});
task('bar', [foo]); When I run it on Windows, I get
whereas on OS X it works fine. |
@markandrus I've added you to the org -- use your commit-bit powers for good! |
Causing trouble also for me/us on Windows machines. Just saying it will be useful to have a fix. |
Hi!
If you create a
file
task that includes a drive letter, for examplethen trying to run
bar
will fail. I discovered this after writing a bunch of platform-independent code usingpath.resolve
, only to find it failed on Windows.This issue is related to #252, but I think it might warrant a separate ticket since the issue seems more serious than if ":" were simply disallowed in
task
s.Thanks,
Mark
The text was updated successfully, but these errors were encountered: