Closed
Description
Describe the bug
pip install
ing a version of PyYAML which is not the version being used to run the workflow causes the workflow runner to crash on subsequent steps.
2020-07-15T21:47:13.5356959Z FileNotFoundError: [Errno 2] No such file or directory: '/opt/hostedtoolcache/Python/3.7.8/x64/lib/python3.7/site-packages/PyYAML-5.3.1-py3.7-linux-x86_64.egg'
2020-07-15T21:47:13.5916339Z ##[error]Process completed with exit code 1.
Which version of the action are you using?
-
v1
-
v2
- Some other tag (such as
v2.0.1
ormaster
)
Environment
- self-hosted
- Linux
- Windows
- Mac
If applicable, please specify if you're using a container
Python Versions
3.7.8
To Reproduce
Steps to reproduce the behavior:
- Run a workflow e.g. this one that
pip installs
some version of PyYAML - On my workflow, scroll down to "Install Conflicting PyYAML"
- Notice the FileNotFoundError which is not from execution of my workflow.
- Notice that the "Do Something Else" step is not run.
Run/Repo Url
https://github.com/jameshiebert/action/runs/875331441?check_suite_focus=true
Additional context
I guess the right (?) way to work around this is to install everything in a virtual environment (as shown in the following commit), but:
- There's nothing in the README (that I can find, at least) that says this is necessary, and
- I'd argue that it's a bug (or at the very least, not proper encapsulation) if the user is able to cause the workflow runner to crash.
If I'm doing something wrong, I'd be happy to hear about it :) Thanks.