Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflect pyenv-latest switch change in 2.4.8 #484

Merged
merged 2 commits into from
Jul 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Reflect pyenv-latest switch change in 2.4.8
native-api committed Jul 21, 2024
commit 6179ac76c412d2e9a637b5ea8e7a7e47e4a48363
2 changes: 1 addition & 1 deletion bin/pyenv-virtualenv
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion test/virtualenv.bats
Original file line number Diff line number Diff line change
@@ -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"