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

Support for specifying same version twice #135

Open
nipunn1313 opened this issue Dec 28, 2020 · 0 comments
Open

Support for specifying same version twice #135

nipunn1313 opened this issue Dec 28, 2020 · 0 comments

Comments

@nipunn1313
Copy link

nipunn1313 commented Dec 28, 2020

Hi,

It would be awesome if pyenv-action supported specifying something like

version: 3.8.6, 3.8.6

Currently, the second installation crashes

It can be helpful when using build matrix w/ multiple variables, with something like

matrix:
   py_step1: [3.8.6, 3.7.9]
   py_step2: [3.8.6, 3.7.9]
steps:
  uses: gabrielfalcao/pyenv-action@v7
  with:
    versions: ${{py_step1}}, ${{pystep2}}

I imagine this would be as simple as set uniq'ing the comma separated list of versions before further processing.

Example logs:

Downloading Python-3.8.6.tar.xz...
-> https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz
Downloading Python-3.8.6.tar.xz...
-> https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz
Installing Python-3.8.6...
Installing Python-3.8.6...
cp: cannot create regular file '/opt/hostedtoolcache/pyenv_root/1.2.21/x64/versions/3.8.6/bin/python3.8-gdb.py': File exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant