Skip to content

bug: Can set a version that does not exists #2044

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

Closed
plucury opened this issue Mar 27, 2025 · 1 comment
Closed

bug: Can set a version that does not exists #2044

plucury opened this issue Mar 27, 2025 · 1 comment
Labels

Comments

@plucury
Copy link

plucury commented Mar 27, 2025

Describe the Bug

You can set any version you want without any checks and it will write to .tool_versions directly.

Steps to Reproduce

asdf set golang 2.0

Expected Behaviour

Validate the version.
OR Providing more accurate error messages when you try to use cmd. For now it just said "No version is set for command go"

Actual Behaviour

No error or warning messges.

Environment

OS:
Darwin xuzhangxuandeMacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64

SHELL:
zsh 5.9 (arm64-apple-darwin24.0)

BASH VERSION:
3.2.57(1)-release

ASDF VERSION:
0.16.6

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/xuzhangxuan/.asdf
ASDF_CONFIG_FILE=/Users/xuzhangxuan/.asdfrc

ASDF INSTALLED PLUGINS:
bats       https://github.com/timgluz/asdf-bats.git          299551f1668b2ba11804bdca709da8933b647bb5
golang     https://github.com/asdf-community/asdf-golang.git e2527a31714da7bc671a684308579f4ef8863281
shellcheck https://github.com/luizm/asdf-shellcheck.git      66200ffa221fc75d7b28103f53326db6e721d08f
shfmt      https://github.com/luizm/asdf-shfmt.git           a42c5ffc85dacc5bde85a5ce5876ab4297ea8040
zig        https://github.com/cheetah/asdf-zig.git           9d11e5b4a4fee4ddf47caf739b1f5ec8d6862384

asdf plugins affected (if relevant)

No response

@plucury plucury added the bug label Mar 27, 2025
@Stratus3D
Copy link
Member

Closing as duplicate of #1983

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

2 participants