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: Warn: You have configured asdf to preserve downloaded files (with always_keep_download=yes or --keep-download). But asdf: Warn: the current plugin (nodejs) does not support that. Downloaded files will not be preserved. #384

Open
dorianmariecom opened this issue Feb 14, 2024 · 2 comments

Comments

@dorianmariecom
Copy link

Hi,

I'm getting this warning when installing nodejs:

> asdf install nodejs 20.11.0
....
asdf: Warn: You have configured asdf to preserve downloaded files (with always_keep_download=yes or --keep-download). But
asdf: Warn: the current plugin (nodejs) does not support that. Downloaded files will not be preserved.
> asdf --version
v0.13.1-0586b37
@mckabi
Copy link

mckabi commented Feb 16, 2024

same as me.
but no problem using it though.

❯ asdf --version
v0.14.0

❯ LANG=C asdf plugin-update --all
Location of nodejs plugin: /path/to/.asdf/plugins/nodejs
Updating nodejs to master
Already on 'master'
Your branch is up to date with 'origin/master'.

❯ asdf install nodejs 20.11.1
Trying to update node-build... ok
Downloading node-v20.11.1-darwin-arm64.tar.gz...
-> https://nodejs.org/dist/v20.11.1/node-v20.11.1-darwin-arm64.tar.gz
Installing node-v20.11.1-darwin-arm64...
Installed node-v20.11.1-darwin-arm64 to /path/to/.asdf/installs/nodejs/20.11.1

asdf: Warn: You have configured asdf to preserve downloaded files (with always_keep_download=yes or --keep-download). But
asdf: Warn: the current plugin (nodejs) does not support that. Downloaded files will not be preserved.

❯ asdf local nodejs 20.11.1
❯ node --version
v20.11.1

@stannum-l
Copy link

To disable that warning, you can place in your $HOME/.asdfrc (or other setting equivalent) this line:

always_keep_download = yes

I know it should be a no based on the warning, but there appears to be a bug where the opposite holds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants