Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: pyenv version installation flag (skip/force) #165

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

oyale
Copy link
Contributor

@oyale oyale commented Jun 10, 2024

If the version defined for pyenv is already installed, playbook will stuck expecting for user input:

(odoo) odoo@odoo:~/pyenv$ pyenv install 3.8
pyenv: /home/odoo/pyenv/versions/3.8.19 already exists
continue with installation? (y/N) n 

There are two flags for handling this:

  -f/--force         Install even if the version appears to be installed already
  -s/--skip-existing Skip if the version appears to be installed already

This PR set the -s flag by default and allows to force reinstall by setting odoo_role_force_pyenv_version to True

@oyale oyale merged commit cf59727 into master Jun 10, 2024
@oyale oyale deleted the feat/allow_reinstall_python_pyenv_version branch June 10, 2024 16:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants