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

asdf install awscli is assuming current working directory is $HOME #19

Closed
cavoirom opened this issue Aug 18, 2022 · 1 comment · Fixed by #21
Closed

asdf install awscli is assuming current working directory is $HOME #19

cavoirom opened this issue Aug 18, 2022 · 1 comment · Fixed by #21
Labels
bug Something isn't working

Comments

@cavoirom
Copy link

Describe the bug

I got this error when install awscli, here is the command and error:

jenkins@c236aff3753b:/$ asdf install awscli 2.7.24
checkdir:  cannot create extraction directory: ./AWSCLIV2
           Permission denied
asdf-awscli: Could not extract /home/jenkins/.asdf/installs/awscli/2.7.24/awscli-2.7.24.zip
asdf-awscli: An error ocurred while installing awscli 2.7.24.

Steps to reproduce

# install plugin.
asdf plugin add awscli
# go to a directory that the current user doesn't have permission.
cd /
# install awscli and error happen.
asdf install awscli 2.7.24

Expected behavior

We should not use current directory for extracting temporary files.

@cavoirom cavoirom added the bug Something isn't working label Aug 18, 2022
@duhow
Copy link

duhow commented Feb 24, 2023

Hit by this same bug. Workaround is to cd ~ but I'd like to avoid that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants