From 6179ac76c412d2e9a637b5ea8e7a7e47e4a48363 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sun, 21 Jul 2024 23:31:47 +0300 Subject: [PATCH] Reflect pyenv-latest switch change in 2.4.8 --- bin/pyenv-virtualenv | 2 +- test/virtualenv.bats | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index 8316422..269aad3 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -317,7 +317,7 @@ else fi if [[ -n "${VERSION_NAME}" ]] && command -v pyenv-latest >/dev/null; then - VERSION_NAME="$(pyenv-latest -q "${VERSION_NAME}" || echo "${VERSION_NAME}")" + VERSION_NAME="$(pyenv-latest -f "${VERSION_NAME}")" fi if [ -z "${VERSION_NAME}" ] || [ -z "${VIRTUALENV_NAME}" ]; then diff --git a/test/virtualenv.bats b/test/virtualenv.bats index 4084b4a..2cf2f1e 100644 --- a/test/virtualenv.bats +++ b/test/virtualenv.bats @@ -65,7 +65,7 @@ OUT stub pyenv-exec "python -s -m ensurepip : false" stub pyenv-exec "python -s */get-pip.py : true" stub curl true - stub pyenv-latest "-q 2.7 : echo 2.7.11" + stub pyenv-latest "-f 2.7 : echo 2.7.11" run pyenv-virtualenv "2.7" "venv"