asdf-vm / asdf

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
https://asdf-vm.com/
MIT License
21.57k stars 767 forks source link

bug: ASDF_CONFIG_FILE is ignored by `asdf` command #1772

Closed hhemied closed 1 week ago

hhemied commented 3 weeks ago

Describe the Bug

The asdf act weird with having $ASDF_CONFIG_FILE as environment variable It gets ignored by the command

Steps to Reproduce

  1. add content to your $HOME/.asdfrc like always_keep_download = no
  2. Run ASDF_CONFIG_FILE=~/.asdfrc asdf install oc stable-4.16

Expected Behaviour

Not to show the warning about keeping the downloads

Actual Behaviour

Warning me about setting always_keep_download to be yes.

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

Environment

OS:
Darwin hhemied-mac 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6031 arm64

SHELL:
zsh 5.9 (x86_64-apple-darwin23.0)

BASH VERSION:
5.2.32(1)-release

ASDF VERSION:
v0.14.0

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/hazemhemied/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/hazemhemied/.asdfrc

ASDF INSTALLED PLUGINS:
helm                         https://github.com/Antiarchitect/asdf-helm.git master f4b7f38
oc                           https://github.com/sqtran/asdf-oc.git master ef1291c

asdf plugins affected (if relevant)

for the time being, but not completely relevant

oc                           *https://github.com/sqtran/asdf-oc.git
hyperupcall commented 3 weeks ago

Looks like a duplicate of #1711

hhemied commented 3 weeks ago

Thanks @hyperupcall for your mention. the issue still exist though.

hhemied commented 1 week ago

I see the fix now has been reflected on the published version in brew