[TIMOB-15858] CLI: Error while cleaning a project after build
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | androidlib, cb-tooling |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-12-02T20:40:58.000+0000 |
Updated | 2016-09-02T06:00:35.000+0000 |
Why not just rimraf the whole
build
folder?[~fokkezb] How is rimraf any different than a
wrench.rmdirSyncRecursive()
? https://github.com/appcelerator/titanium_mobile/blob/master/cli/commands/clean.js#L126-L130Well, apparently Isaacs handles this case: https://github.com/isaacs/rimraf/blob/master/rimraf.js#L321
Maybe we should just
exec('rm -rf /path/to/build/dir')
.I think rimraf handles cross-platform compat better.
Until I hear a solid argument to move away from
wrench.rmdirSyncRecursive()
and proof that rimraf actually solves this problem, I'm not going to touch anything which puts this ticket in jeopardy of being resolved won't fix. My guess is rimraf would have the same problem.As always, it seems you are right and even
rm -rf
would fail: https://github.com/oortcloud/meteorite/issues/235#issuecomment-32572271Haha, ugly workaround: https://github.com/oortcloud/meteorite/pull/237/files
I'm sure it's just a timing thing. I bet if we did a retry with a 250ms pause, it would probably work, but then we would have to make it async instead of sync, which is fine.