gabrielfalcao / pyenv-action

Enables pyenv within your github actions workflow
MIT License
39 stars 17 forks source link

Error: versionSpec parameter is required #435

Closed sukruavcuoglu closed 8 months ago

sukruavcuoglu commented 8 months ago

Hi,

Thanks for the action. Great job! I am getting "Error: versionSpec parameter is required" on my github configuration. Here is my setup.

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 8 months ago

tried with v16. Still same error.

sukruavcuoglu commented 8 months ago

Fixed the issue with this config. Putting here incase anyone else encounters the error. It seems "default" parameter is mandatory.

gabrielfalcao commented 7 months ago

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!