Skip to content

Commit

Permalink
Merge pull request #484 from native-api/pyenv_latest_f
Browse files Browse the repository at this point in the history
Reflect pyenv-latest switch change in 2.4.8
  • Loading branch information
native-api authored Jul 21, 2024
2 parents cf45718 + d6756ca commit d811b3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
os:
- ubuntu-22.04
- ubuntu-20.04
- macos-12
- macos-11
- macos-14
- macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion bin/pyenv-virtualenv
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,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
Expand Down
2 changes: 1 addition & 1 deletion test/virtualenv.bats
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,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"

Expand Down

0 comments on commit d811b3f

Please sign in to comment.