Error: versionSpec parameter is required
sukruavcuoglu opened this issue · 3 comments
sukruavcuoglu commented
Hi,
Thanks for the action. Great job!
I am getting "Error: versionSpec parameter is required" on my github configuration. Here is my setup.
- name: Install python version
uses: gabrielfalcao/pyenv-action@v11
with:
versions: 3.11.0
command: pip install -U pip
output:
Run gabrielfalcao/pyenv-action@v11
downloading https://github.com/pyenv/pyenv/archive/v2.3.7.zip
/usr/bin/unzip -o -q /opt/hostedtoolcache/pyenv-archive.zip/2.3.7/x64/pyenv-archive.zip
Extracted /opt/hostedtoolcache/pyenv-archive.zip/2.3.7/x64/pyenv-archive.zip to /home/runner/work/_temp/d00c501b-acd6-4728-b9ad-74d602f74735.
archive_path /opt/hostedtoolcache/pyenv-archive.zip/2.3.7/x64/pyenv-archive.zip
pyenv_root /opt/hostedtoolcache/pyenv_root/2.3.7/x64
export PYENV_ROOT="/opt/hostedtoolcache/pyenv_root/2.3.7/x64"
Patched PATH with "/opt/hostedtoolcache/pyenv_root/2.3.7/x64/bin"
/opt/hostedtoolcache/pyenv_root/2.3.7/x64/bin/pyenv install 3.11.0
Downloading Python-3.11.0.tar.xz...
-> https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tar.xz
Installing Python-3.11.0...
Installed Python-3.11.0 to /opt/hostedtoolcache/pyenv_root/2.3.7/x64/versions/3.11.0
Sucessfully installed python 3.11.0
/usr/bin/bash /opt/hostedtoolcache/pyenv-2.3.7-command-3.11.0/3.11.0/x64/pyenv_post_install.sh
+ pip install -U pip
Requirement already satisfied: pip in /opt/hostedtoolcache/pyenv_root/2.3.7/x64/versions/3.11.0/lib/python3.11/site-packages ([22](.../actions/runs/6711805884/job/18240000793#step:3:23).3)
Collecting pip
Downloading pip-[23](.../actions/runs/6711805884/job/18240000793#step:3:24).3.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB [15](***/actions/runs/6711805884/job/18240000793#step:3:16).5 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip [22](***/actions/runs/6711805884/job/18240000793#step:3:23).3
Uninstalling pip-22.3:
Successfully uninstalled pip-22.3
Successfully installed pip-[23](***/actions/runs/6711805884/job/18240000793#step:3:24).3.1
Error: versionSpec parameter is required
sukruavcuoglu commented
tried with v16. Still same error.
sukruavcuoglu commented
Fixed the issue with this config. Putting here incase anyone else encounters the error.
It seems "default" parameter is mandatory.
- name: Install python version
uses: gabrielfalcao/pyenv-action@v16
with:
default: 3.11.3
command: pip install -U pip
gabrielfalcao commented
Hey @sukruavcuoglu thanks for the infos. I'm instantly looking into debugging the params, what comes to mind at present is that the default parameter should be documented whether its internal usage is at fault or the misuse at the end-user side should be warranted as obligatory. 10x!