-
Notifications
You must be signed in to change notification settings - Fork 144
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
Resolving LTS version only outputs major number #369
Comments
Ok, I fixed that with adding However, it is really confusing, because I'm not using any legacy files like @augustobmoura Is this behaviour intended? |
The README states "This option is only available for legacy version files". So, it does not work with
Most of my projects are using |
this is now happening with v20. It's a broken behavior imo. When trying to install latest lts version using the command that asdf says to use: "asdf install nodejs lts" it errors out I tried adding |
consistent with gitlab/github CI https://github.com/asdf-vm/asdf-nodejs#resolving-latest-available-lts-version-in-a-script asdf version in cloudflare pages may not be the latest, so does not always resolve 'lts' to the latest LTS asdf currently is unable to install v20 through 'lts' asdf-vm/asdf-nodejs#369 (comment)
We could've the command fail if you don't provide either I will work on making failing when no variable is passed the default behavior |
Describe the Bug
When trying to resolve latest lts node version, I'm getting the result I was not expecting. When I run
asdf nodejs resolve lts
it only outputs a current major number18
instead of a full version specified:18.18.0
. I get the same result when runningasdf nodejs resolve lts --latest-available
. Weirdly enough, runningasdf nodejs resolve lts --latest-installed
returns full version, so18.18.0
, even though I have no node versions installed yet (I am assuming it is using latest available version as a fallback?).That is also causing
asdf install nodejs lts
not working, because it cannot resolve version18
.Steps to Reproduce
Run:
asdf install nodejs lts
asdf nodejs resolve lts
asdf nodejs resolve lts --latest-available
Expected Behaviour
Command
asdf nodejs resolve lts
should output full semantic version of latest available LTS Node version andasdf install nodejs lts
should be able to install it. As of 2023-10-02 it should output18.18.0
Actual Behaviour
Only major version number is printed
This causes
asdf install nodejs lts
to fail. It needs full version specified withMAJOR.MINOR.PATCH
Environment
asdf plugins affected (if relevant)
nodejs
The text was updated successfully, but these errors were encountered: