Skip to content
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

Running clean twice causes error: "path to be cleaned is outside the current working directory" #1

Closed
rdworth opened this issue Jun 1, 2012 · 1 comment

Comments

@rdworth
Copy link

rdworth commented Jun 1, 2012

The clean task should not fail if there is nothing to clean (because the previous run was successful). Encountering this error with the latest version in npm, 0.2.1 and also, 0.2.0. Issue not present with v0.1.0

Expected

> rm -rf dist
> mkdir dist
> touch dist/foo
> grunt clean
Running "clean:folder" (clean) task
Folder "dist/" contents removed.

Done, without errors.

> grunt clean
Running "clean:folder" (clean) task
Folder "dist/" contents removed.

Done, without errors.

Actual

> rm -rf dist
> mkdir dist
> touch dist/foo
> grunt clean
Running "clean:folder" (clean) task
Folder "dist/" contents removed.

Done, without errors.
> grunt clean
Running "clean:folder" (clean) task
<WARN> path to be cleaned is outside the current working directory Use --force to continue. </WARN>

Aborted due to warnings.

This is side-stepped by 364f30c but as that's not yet in an npm-released version, it makes the latest version of this task unusable.

rdworth added a commit to qunitjs/qunitjs.com that referenced this issue Jun 1, 2012
@ghost ghost assigned maxbeatty Jun 1, 2012
@maxbeatty
Copy link

revved npm to 0.3.0 which is now available http://search.npmjs.org/#/grunt-clean

If you are preparing a package.json to fetch this, you could always source it directly from GitHub to get the latest.

"grunt-clean": "git+ssh://git@github.com:reputation/grunt-clean.git",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants