django-bower icon indicating copy to clipboard operation
django-bower copied to clipboard

'./manage.py bower_install' must return non zero exit code

Open sza-1 opened this issue 10 years ago • 1 comments

Try the following:

# ./manage.py bower_install foo-bar-baz-qwe -- --allow-root ; echo $?
bower                                          ENOTFOUND Package foo-bar-baz-qwe not found
0

Perhaps ./manage.py bower_install must return 1 on errors. For example ./manage.py bower_freeze ; echo $? (from root) will return 1 on error (because --allow-root is not specified).

I believe that is a fatal issue because you can not use ./manage.py bower_install in automated build scripts (I faced with this issue when building Docker image which runs bower_install).

sza-1 avatar Mar 29 '15 16:03 sza-1

This is also causing me problems with an ansible deploy. I can probably code around it but a proper exit code would be much nicer.

andybak avatar May 09 '15 19:05 andybak