bug: ASDF_CONFIG_FILE is ignored by `asdf` command
hhemied opened this issue · 3 comments
hhemied commented
Describe the Bug
The asdf
act weird with having $ASDF_CONFIG_FILE
as environment variable
It gets ignored by the command
Steps to Reproduce
- add content to your
$HOME/.asdfrc
likealways_keep_download = no
- 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
Looks like a duplicate of #1711
hhemied commented
Thanks @hyperupcall for your mention.
the issue still exist though.
hhemied commented
I see the fix now has been reflected on the published version in brew