Fix pyenv: no such command 'update' (#860)

pyenv: fixes #849

Co-authored-by: Lucas Parzianello <lucaspar@users.noreply.github.com>
This commit is contained in:
Lucas Parzianello
2024-07-10 19:52:09 -04:00
committed by GitHub
parent 16e6db0def
commit 07118fa0d2

View File

@@ -609,6 +609,10 @@ pub fn run_pyenv(ctx: &ExecutionContext) -> Result<()> {
return Err(SkipStep("pyenv is not a git repository".to_string()).into());
}
if !pyenv_dir.join("plugins").join("pyenv-update").exists() {
return Err(SkipStep("pyenv-update plugin is not installed".to_string()).into());
}
ctx.run_type().execute(pyenv).arg("update").status_checked()
}