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 displays the full help output - confusing scripts checking for what asdf is installed #1915

Closed
jaclu opened this issue Feb 7, 2025 · 2 comments · Fixed by #1931
Labels

Comments

@jaclu
Copy link

jaclu commented Feb 7, 2025

Describe the Bug

After the rewrite asdf version displays asdf help thus easily confusing scripts detecting what version of asdf is installed.

The version number is still listed on line 1 of the output, so in that sense it could be argued to still be valid output.

However this is not usable in reality, since virtually all version detections are done lazily, assuming the second word is the version, not filtering additional lines of output.

End result: this causes essentially all scripts checking what asdf is installed to fail

Steps to Reproduce

asdf version

Expected Behaviour

version: v0.16.1

Actual Behaviour

version: 0.16.1

MANAGE PLUGINS
asdf plugin add [] 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 Remove plugin and package versions
asdf plugin update [] 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 Display current version set or being
used for package
asdf help [] Output documentation for plugin and tool
asdf install Install all the package versions listed
in the .tool-versions file
asdf install Install one tool at the version
specified in the .tool-versions file
asdf install Install a specific version of a package
asdf install latest[:] 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 [] 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 [version] List installed versions of a package and
optionally filter the versions
asdf list all [] List all versions of a package and
optionally filter the returned versions
asdf set [-h] [-p] <versions...> Set a tool version in a .tool-version in
the current directory, or a parent
directory.
asdf uninstall Remove a specific version of a package
asdf where [] Display install path for an installed
or current version
asdf which Display the path to an executable

UTILS
asdf exec [args...] Executes the command shim for current version
asdf env [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 Recreate shims for version of a package
asdf shimversions List the plugins and versions that
provide a command

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

"Late but latest"
-- Rajinikanth

Environment

global issue, does not depend on local env

asdf plugins affected (if relevant)

No response

@jaclu jaclu added the bug label Feb 7, 2025
@n-rodriguez
Copy link
Contributor

Also asdf version is not autocompleted.

@Stratus3D
Copy link
Member

@jn-jairo fixed this for us! Code should be released in version 0.16.3 sometime this week.

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

Successfully merging a pull request may close this issue.

3 participants