Skip to content

bug: install failed but it tell me already installed #2036

@ziyouchutuwenwu

Description

@ziyouchutuwenwu

Describe the Bug

run asdf install xxx, if it failed or manually interrupted, then run it again, it told me already installed.

Steps to Reproduce

  1. install and interrupt it.
$ asdf install python 3.10.0
python-build 3.10.0 /home/mmc/.asdf/installs/python/3.10.0
Downloading Python-3.10.0.tar.xz...
-> https://registry.npmmirror.com/-/binary/python/3.10.0/Python-3.10.0.tar.xz
^C
error: failed to download Python-3.10.0.tar.xz
  1. run it again
$ asdf install python 3.10.0
version 3.10.0 of python is already installed

Expected Behaviour

continue to install

Actual Behaviour

it told me already installed

Environment

$ asdf info                 
OS:
Linux manjaro 6.6.83-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Mar 13 15:07:44 UTC 2025 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-pc-linux-gnu)

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
v0.16.5

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/mmc/.asdf
ASDF_CONFIG_FILE=/home/mmc/.asdfrc

ASDF INSTALLED PLUGINS:
nodejs    https://github.com/asdf-vm/asdf-nodejs.git 5515b8705fbf4d610ede04bb9a3fc4812e3a4168
python    https://github.com/danhper/asdf-python.git a3a01856098d6d2b9642e382f5b38e70275726d1

asdf plugins affected (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions