nvbn / django-bower

Easy way to use bower with your django project
https://django-bower.readthedocs.io/
518 stars 75 forks source link

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

Open sza-1 opened 9 years ago

sza-1 commented 9 years ago

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).

andybak commented 9 years ago

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.