You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the code here, this will read the first line in that file and it will not match the requested version, and re-install on subsequent runs.
Seems to be a glitch with the generated version-manifest for that version, and my guess is based on how old it is, it would be in a won't fix state.
Obviously, partial versions wouldn't even work here because it is returning a completely bogus version number, unless I were to drop down to just chef 11, which isn't really ideal in my case.
Suggestion
Curious if the following code change would be acceptable as a work around since we can't seem to trust the /opt/chef/version-manifest.txt based on the above information:
That said, this is only a minor annoyance, so if there is a strict reason that we are using the version-manifest.txt before the bin, that is fine, and I will "deal with it" accordingly. That said, this might be related to some of the issues that have been already brought up:
After cloning this to attempt a solution, I found out that it is in the works to include the https://github.com/chef/mixlib-install to handle the work for the current scripts. I will work this out on that repository and close this PR. Thanks!
So here is by setup:
.kitchen.yml
The issue
When
test-kitchen
downloads chef via omnibus, here is the/opt/chef/version-manifest.txt
that is generated:Based on the code here, this will read the first line in that file and it will not match the requested version, and re-install on subsequent runs.
Seems to be a glitch with the generated
version-manifest
for that version, and my guess is based on how old it is, it would be in awon't fix
state.Obviously, partial versions wouldn't even work here because it is returning a completely bogus version number, unless I were to drop down to just chef 11, which isn't really ideal in my case.
Suggestion
Curious if the following code change would be acceptable as a work around since we can't seem to trust the
/opt/chef/version-manifest.txt
based on the above information:That said, this is only a minor annoyance, so if there is a strict reason that we are using the
version-manifest.txt
before the bin, that is fine, and I will "deal with it" accordingly. That said, this might be related to some of the issues that have been already brought up:P.S. Thanks for the great tool!
The text was updated successfully, but these errors were encountered: