-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
cookbook does not install requested version if package & repo for a different version already present #201
Comments
@Poohblah did you find a fix for this? Im having same issue |
No, I haven't really been looking for a fix. The nodejs cookbook is one of my least-used cookbooks, so this is very low-priority for me personally. IIRC I just manually removed the package & repo and re-ran chef when I ran into this issue. |
Consistent with other reports about upgrades of packages. There are at least 3 related issues. |
From tracing the code, it doesn't look like version is really taken into account much at all, is it? |
Correct. |
Will leave this here instead of opening another bug but for people looking out to fix this, the nodejs_from_package is ignoring the version, so specifying another version than the original one will not work. To fix it you need to add the version: In https://github.com/sous-chefs/nodejs/blob/main/recipes/nodejs_from_package.rb#L38, it should be
|
Cookbook version
6.0.0
Chef-client version
14.2.0
Platform Details
RHEL 7
Scenario:
If a system already has a node.js repository and nodejs package installed that are different from the version specified in the
node['nodejs']['version']
attribute, then the nodejs cookbook will not update the package to the requested version.Steps to Reproduce:
recipes/default.rb
:attributes.rb
:Expected Result:
nodejs cookbook upgrades node to the specified package version.
Actual Result:
nodejs cookbook does not upgrade node.
The text was updated successfully, but these errors were encountered: