biotope / biotope-build

Biotope Build Framework
https://build.biotope.sh
MIT License
24 stars 10 forks source link

Clean task for /dist crashes #66

Closed janrembold closed 6 years ago

janrembold commented 6 years ago

I often see that the second execution of the "clean:dist" task crashes. Happens on Mac, don't know if that is an issue on Windows too.

It is reproduceable by running "yarn build" twice. Second execution leads to the error (see below). A third execution runs fine again.

I think this is some kind of async rmdir execution that leads to that error. It seems to try a rmdir on a folder that was already removed.

[10:48:48] 'clean:dist' errored after 368 ms
[10:48:48] Error: EINVAL: invalid argument, rmdir '/Users/###/dist/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment'
[10:48:48] 'build' errored after 372 ms
[10:48:48] Error in plugin 'run-sequence(clean:dist)'
Message:
    EINVAL: invalid argument, rmdir '/Users/###/dist/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment'
Details:
    errno: -22
    code: EINVAL
    syscall: rmdir
    path: /Users/###/dist/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment
Stack:
Error: EINVAL: invalid argument, rmdir '/Users/###/dist/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment'
[10:48:48] 'build:dev' errored after 351 ms
[10:48:48] Error in plugin 'run-sequence(build)'
Message:
    EINVAL: invalid argument, rmdir '/Users/###/dist/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment'
Details:
    errno: -22
    code: EINVAL
    syscall: rmdir
    path: /Users/###/dist/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment
Stack:
Error: EINVAL: invalid argument, rmdir '/Users/###/dist/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment'
[10:48:48] 'clean:dev' errored after 318 ms
[10:48:48] Error: EINVAL: invalid argument, rmdir '/Users/###/.tmp/resources/js/vendor/aem-core-wcm-components/extension/contentfragment/content/src/content/jcr_root/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/clientlibs'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! customer-frontend-framework@0.3.0 gulp: `node node_modules/.bin/gulp "build"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the customer-frontend-framework@0.3.0 gulp script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jan.rembold/.npm/_logs/2018-03-29T08_48_48_697Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! customer-frontend-framework@0.3.0 build:gulp: `npm run gulp build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the customer-frontend-framework@0.3.0 build:gulp script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jan.rembold/.npm/_logs/2018-03-29T08_48_48_728Z-debug.log
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c npm run build:gulp
Directory: /Users/###
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/Users/###/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
janrembold commented 6 years ago

Will be fixed with Release 5.3.0

janrembold commented 6 years ago

https://github.com/biotope/biotope-build/pull/71