Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

get-pip.py masks errors #77

Closed
timor-raiman opened this issue Jan 21, 2014 · 3 comments
Closed

get-pip.py masks errors #77

timor-raiman opened this issue Jan 21, 2014 · 3 comments

Comments

@timor-raiman
Copy link

To reproduce, run:
sudo -u nobody python /var/chef/cache/get-pip.py
echo $?

Expected outcome: an error code is returned.
Actual outcome: success (0) is returned regardless of errors.

The indirect result of this behaviour is that the install-pip action always succeeds. However, if in fact there was an error, subsequent pip resources will fail with something like:

Error executing action install on resource 'python_pip[virtualenv]'
Errno::ENOENT
No such file or directory - pip install virtualenv

@mal mal mentioned this issue Feb 6, 2014
@mal
Copy link
Contributor

mal commented Feb 6, 2014

Reported upstream: pypa/pip#1535

@mal
Copy link
Contributor

mal commented Feb 19, 2014

It's fixed upstream, just needs pulling in.

@coderanger
Copy link
Member

Closing this out as https://github.com/poise/poise-python no longer bundles the get-pip.py.

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

No branches or pull requests

3 participants