Fix logic on venv (#5038)

This commit is contained in:
Gabriel Diaz 2020-07-22 15:07:26 -05:00 committed by GitHub
parent c9fedef887
commit 9f28ef6dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -5,9 +5,10 @@ CHANGELOG
- Add pluginDownloadURL field to package definition
[#4947](https://github.com/pulumi/pulumi/pull/4947)
- Add support for streamInvoke during update
[#4990](https://github.com/pulumi/pulumi/pull/4990)
- Add ability to copy configuration values between stacks
[#4971](https://github.com/pulumi/pulumi/pull/4971)
@ -20,6 +21,9 @@ CHANGELOG
- Output PDB files and enable SourceLink integration for .NET assemblies
[#4967](https://github.com/pulumi/pulumi/pull/4967)
- Fix logic to parse pulumi venv on github action
[5038](https://github.com/pulumi/pulumi/pull/5038)
## 2.6.1 (2020-07-09)
- Fix a panic in the display during CLI operations

View file

@ -121,12 +121,12 @@ if [ -e requirements.txt ]; then
# Check if should use venv
PULUMI_VENV=$(cat Pulumi.yaml | grep "virtualenv:" | cut -d':' -f2)
if [ -z $PULUMI_VENV ]; then
pip3 install -r requirements.txt
else
python3 -m venv $PULUMI_VENV
source $PULUMI_VENV/bin/activate
pip3 install -r requirements.txt
deactivate
else
pip3 install -r requirements.txt
fi
fi