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

devon node version set buggy #1098

Closed
hohwille opened this issue Apr 13, 2023 · 2 comments · Fixed by #1108
Closed

devon node version set buggy #1098

hohwille opened this issue Apr 13, 2023 · 2 comments · Fixed by #1108
Labels
bug Something isn't working

Comments

@hohwille
Copy link
Member

$ devon node version set v16.
v16.0.0   v16.10.0  v16.11.1  v16.13.0  v16.13.2  v16.14.1  v16.15.0  v16.16.0  v16.17.1  v16.18.1  v16.3.0   v16.4.1   v16.5.0   v16.6.1   v16.7.0   v16.9.0
v16.1.0   v16.11.0  v16.12.0  v16.13.1  v16.14.0  v16.14.2  v16.15.1  v16.17.0  v16.18.0  v16.2.0   v16.4.0   v16.4.2   v16.6.0   v16.6.2   v16.8.0   v16.9.1

$ devon node version set v16.10.0
NODEJS_VERSION="v16.10.0" has been set in /d/projects/test/settings/devon.properties
To install that version call the following command:
devon node setup

$ devon node setup
Success: run command mkdir
Starting installation of nodejs in version 16.10.0 to /d/projects/test/software/node
Trying to download nodejs-16.10.0-windows.zip from https://nodejs.org/dist/16.10.0/node-16.10.0-win-x64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
Failed to download https://nodejs.org/dist/16.10.0/node-16.10.0-win-x64.zip with exit code 22

******** ATTENTION ********
Download of nodejs in version 16.10.0 failed after trying 1 mirror(s).
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.

In devon.properties the config line NODEJS_VERSION="16.10.0" had been added without the leading v.
After manually adding the v in devon.properties the setup of node worked.
So for some unknown reason devon version setting is omitting the leading v here...

@hohwille hohwille added the bug Something isn't working label Apr 13, 2023
@hohwille hohwille added this to the release:2023.04.001 milestone Apr 13, 2023
@hohwille
Copy link
Member Author

It seems the actual bug is that the property name was wrong (will be fixed with #1085):
The variable in devon.properties added by devon node version set v16.10.0 was NODEJS_VERSION as you could also see in the log output.
This IMHO happens because doGetToolFolderName transforms node to nodejs and then converts this to UPPERCASE with awk resulting in NODEJS_VERSION instead of NODE_VERSION.
It is great when all this mess will end with #1085

@hohwille
Copy link
Member Author

We should also consider for epic #941 if we should consistently decide if the version should be as is and defined by the tool vendor or if we want to remove artificial prefixes like v from the version. Currently it seems that some commandlet follows philosophy A while then next commandlet goes for philosophy B.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant