pyenv-action icon indicating copy to clipboard operation
pyenv-action copied to clipboard

Support for specifying same version twice

Open nipunn1313 opened this issue 4 years ago • 0 comments

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

nipunn1313 avatar Dec 28 '20 15:12 nipunn1313