diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 59cf7d4..c9930c8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index f7f391a..d30ffb4 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -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 diff --git a/test/virtualenv.bats b/test/virtualenv.bats index 2ae589a..3831085 100644 --- a/test/virtualenv.bats +++ b/test/virtualenv.bats @@ -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"