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 ignores current version #1779

Open
segeda opened this issue Sep 13, 2024 · 1 comment
Open

bug: asdf ignores current version #1779

segeda opened this issue Sep 13, 2024 · 1 comment
Labels

Comments

@segeda
Copy link

segeda commented Sep 13, 2024

Describe the Bug

I have set local version of nodejs, but if i run node -v it is system wide version

Steps to Reproduce

  1. asdf current nodejs -> nodejs 20.10.0 /Users/severa/Personal/project/.tool-versions
  2. node -v -> v22.8.0
  3. asdf list nodejs ->
  14.17.0
  14.17.6
  14.20.0
  18.14.2
 *20.10.0
  22.8.0

Expected Behaviour

node -v -> v20.10.0

Actual Behaviour

node -v -> v22.8.0

Environment

OS:
Darwin MacBook-Pro-M3-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030 arm64

SHELL:
fish, version 3.7.1

BASH VERSION:
3.2.57(1)-release

ASDF VERSION:
v0.14.1

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/severa/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/severa/.asdfrc

ASDF INSTALLED PLUGINS:
deno                         https://github.com/asdf-community/asdf-deno.git master 87442fe
elixir                       https://github.com/asdf-vm/asdf-elixir.git master 1693b35
erlang                       https://github.com/asdf-vm/asdf-erlang.git master 0d402e6
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master f9957f3

asdf plugins affected (if relevant)

nodejs

@segeda segeda added the bug label Sep 13, 2024
@segeda
Copy link
Author

segeda commented Sep 13, 2024

I use fish-shell and this configuration

if status is-interactive
    # Commands to run in interactive sessions can go here
end

eval "$(/opt/homebrew/bin/brew shellenv)"
source /opt/homebrew/opt/asdf/libexec/asdf.fish

fzf --fish | source

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