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

bug: asdf version prompting asdf help instead on v0.16+ #1945

Open
luigiMinardi opened this issue Feb 11, 2025 · 0 comments
Open

bug: asdf version prompting asdf help instead on v0.16+ #1945

luigiMinardi opened this issue Feb 11, 2025 · 0 comments
Labels

Comments

@luigiMinardi
Copy link

luigiMinardi commented Feb 11, 2025

Describe the Bug

As you can see in the capture asdf version is printing the same as asdf help instead of printing the output of asdf --version.
Image

The following report is on the EndeavourOS x86_64 on asdf 0.16.2-arch.

I also tested on asdf 0.16.2 on a macOS 15.1.1 24B91 arm64 installed with brew (Homebrew 4.4.20) and on asdf 0.16.1-arch on EndeavourOS x86_64 (which makes me assume it also happens on 0.16.0)

Steps to Reproduce

Run

asdf version

Expected Behaviour

Output

asdf version 0.16.2-arch

Same as asdf --version

Actual Behaviour

Outputs

version: 0.16.2-arch

MANAGE PLUGINS
asdf plugin add <name> [<git-url>]      Add a plugin from the plugin repo OR,
                                        add a Git repo as a plugin by
                                        specifying the name and repo url
asdf plugin list [--urls] [--refs]      List installed plugins. Optionally show
                                        git urls and git-ref
asdf plugin list all                    List plugins registered on asdf-plugins
                                        repository with URLs
asdf plugin remove <name>               Remove plugin and package versions
asdf plugin update <name> [<git-ref>]   Update a plugin to latest commit on
                                        default branch or a particular git-ref
asdf plugin update --all                Update all plugins to latest commit on
                                        default branch


MANAGE TOOLS
asdf current                            Display current version set or being
                                        used for all packages
asdf current <name>                     Display current version set or being
                                        used for package
asdf help <name> [<version>]            Output documentation for plugin and tool
asdf install                            Install all the package versions listed
                                        in the .tool-versions file
asdf install <name>                     Install one tool at the version
                                        specified in the .tool-versions file
asdf install <name> <version>           Install a specific version of a package
asdf install <name> latest[:<version>]  Install the latest stable version of a
                                        package, or with optional version,
                                        install the latest stable version that
                                        begins with the given string
asdf latest <name> [<version>]          Show latest stable version of a package
asdf latest --all                       Show latest stable version of all the
                                        packages and if they are installed
asdf list <name> [version]              List installed versions of a package and
                                        optionally filter the versions
asdf list all <name> [<version>]        List all versions of a package and
                                        optionally filter the returned versions
asdf set [-u] [-p] <name> <versions...> Set a tool version in a .tool-version in
                                        the current directory, or a parent
                                        directory.
asdf uninstall <name> <version>         Remove a specific version of a package
asdf where <name> [<version>]           Display install path for an installed
                                        or current version
asdf which <command>                    Display the path to an executable


UTILS
asdf exec <command> [args...]           Executes the command shim for current version
asdf env <command> [util]               Runs util (default: `env`) inside the
                                        environment used for command shim execution.
asdf info                               Print OS, Shell and ASDF debug information.
asdf version                            Print the currently installed version of ASDF
asdf reshim <name> <version>            Recreate shims for version of a package
asdf shimversions <command>             List the plugins and versions that
                                        provide a command

RESOURCES
GitHub: https://github.com/asdf-vm/asdf
Docs:   https://asdf-vm.com

PLUGIN nodejs
  asdf nodejs nodebuild.bash
  asdf nodejs resolve.bash
  asdf nodejs update-nodebuild.bash

"Late but latest"
-- Rajinikanth

Same as asdf help

Environment

OS:
Linux lug-z690aorusmaster 6.13.1-arch2-1 #1 SMP PREEMPT_DYNAMIC Fri, 07 Feb 2025 22:24:02 +0000 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-pc-linux-gnu)

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
0.16.2-arch

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/lug/.asdf
ASDF_CONFIG_FILE=/home/lug/.asdfrc

ASDF INSTALLED PLUGINS:
flutter   https://github.com/oae/asdf-flutter.git             5151ecb403ed9d75215948b4226db26e52d7c83c
golang    https://github.com/kennyp/asdf-golang.git           21d9c329bb8e28cc7018fe90808e2bda751952d0
java      https://github.com/halcyon/asdf-java.git            783676838d7c9a0c2ccfb63bb9f07dfdc6004971
nodejs    https://github.com/asdf-vm/asdf-nodejs.git          4f8aa3d9ebeb626c6905f6456c5ded13b06b59ab
postgres  https://github.com/smashedtoatoms/asdf-postgres.git f8cf805578c839a8ef01472dd66efee622b15d16
python    https://github.com/danhper/asdf-python.git          8505457c6612514688ba473386d2063d4c83bb54
rust      https://github.com/code-lever/asdf-rust.git         95acf4fe65df1de74fca502482b8f3ac5af73c05
yarn      https://github.com/twuni/asdf-yarn.git              376c5407ef22c82fa56e4bd9f6a9108354063acb
zig       https://github.com/cheetah/asdf-zig.git             9d11e5b4a4fee4ddf47caf739b1f5ec8d6862384

I'm on EndeavourOS x86_64 and using yay v12.4.2 - libalpm v15.0.0 as my AUR helper, just in case that's relevant.

asdf plugins affected (if relevant)

No response

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

No branches or pull requests

1 participant