Skip to content

bug: ASDF_INSTALL_* environment variables are not set when running the list-bin-paths script #2175

@atoato88

Description

@atoato88

Describe the Bug

ASDF_INSTALL_* environment variables are not set when run list-bin-paths script.

As documented here, ASDF_INSTALL_* environment variables should be available when run list-bin-paths called by asdf reshim command.

Steps to Reproduce

On current implementation, The third arg is map[string]string{} which does not contain ASDF_INSTALL_* environment variables.

* Sorry for not giving a step-by-step explanation.

Expected Behaviour

We can use the following environment variables in a list-bin-paths script:

  • ASDF_INSTALL_TYPE
  • ASDF_INSTALL_VERSION
  • ASDF_INSTALL_PATH

Actual Behaviour

We can not use the following environment variables in a list-bin-paths script:

  • ASDF_INSTALL_TYPE
  • ASDF_INSTALL_VERSION
  • ASDF_INSTALL_PATH

Environment

OS:
Linux <removed> 6.14.0-29-generic #29~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Aug 14 16:52:50 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

BASH VERSION:
5.2.21(1)-release

ASDF VERSION:
v0.18.0 (revision 2114f1e)

ASDF INTERNAL VARIABLES:
ASDF_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/<removed>/.asdf
ASDF_CONFIG_FILE=/home/<removed>/.asdfrc

ASDF INSTALLED PLUGINS:
bats        https://github.com/timgluz/asdf-bats.git
            299551f1668b2ba11804bdca709da8933b647bb5
golang      https://github.com/asdf-community/asdf-golang.git
            e2527a31714da7bc671a684308579f4ef8863281
helm        https://github.com/Antiarchitect/asdf-helm.git
            00b6ead39b97536304042241f31242811ca39f74
kind        https://github.com/johnlayton/asdf-kind.git
            1201d8c348952291a2f661016e3e7085d301631e
kubebuilder https://github.com/virtualstaticvoid/asdf-kubebuilder.git
            d37b7e7e4f31c721af35b60e15099f69c765c38e
kubectl     https://github.com/asdf-community/asdf-kubectl.git
            2fb3b57090e3efe55953a751a134c271ba83b119
minikube    https://github.com/alvarobp/asdf-minikube.git
            2324ba728afacf5986acbe7171ad27cd32e4bc17
nodejs      https://github.com/asdf-vm/asdf-nodejs.git
            5515b8705fbf4d610ede04bb9a3fc4812e3a4168
python      https://github.com/danhper/asdf-python.git
            a3a01856098d6d2b9642e382f5b38e70275726d1
shellcheck  https://github.com/luizm/asdf-shellcheck.git
            954cde0a767a0eb3647e57ec2be47cd0d48c0325
shfmt       https://github.com/luizm/asdf-shfmt.git
            a42c5ffc85dacc5bde85a5ce5876ab4297ea8040

asdf plugins affected (if relevant)

Any plugins which use ASDF_INSTALL_* environment variables in list-bin-paths script.

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