mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
python-setup: Fix pipenv (--keep-outdated deprecated)
Recently released pipenv removed support for `--keep-outdated` flag (see https://github.com/pypa/pipenv/blob/main/CHANGELOG.rst#pipenv-202379-2023-07-09) Local testing showed that installation was fine without this 👍
This commit is contained in:
@@ -76,7 +76,7 @@ def install_packages_with_pipenv(has_lockfile):
|
|||||||
# In windows the default path were the deps are installed gets wiped out between steps,
|
# In windows the default path were the deps are installed gets wiped out between steps,
|
||||||
# so we have to set it up to a folder that will be kept
|
# so we have to set it up to a folder that will be kept
|
||||||
os.environ['WORKON_HOME'] = os.path.join(os.environ['RUNNER_WORKSPACE'], 'virtualenvs')
|
os.environ['WORKON_HOME'] = os.path.join(os.environ['RUNNER_WORKSPACE'], 'virtualenvs')
|
||||||
lock_args = ['--keep-outdated', '--ignore-pipfile'] if has_lockfile else ['--skip-lock']
|
lock_args = ['--ignore-pipfile'] if has_lockfile else ['--skip-lock']
|
||||||
try:
|
try:
|
||||||
_check_call(command + ['install'] + lock_args)
|
_check_call(command + ['install'] + lock_args)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
|||||||
Reference in New Issue
Block a user