-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Cannot force update branch error is back #289
Comments
This problem is still occurring in my environment. |
Unfortunately not but this would be a great candidate for Hacktoberfest 2020. |
@thr3a So the issue at heart is a bug in chef built in git resource. i can confirm that newer versions of chef-client don't exhibit this behaviour in my testing. We use 16.4.41 in our env and we do not have this issue anymore (even with the removed workaround) and the testing running on latest did not exhibit this issue either. The solution to this is to update to a more recent chef client with the bugfix theres not much that can be done in this cookbook. removed the workaround in the cookbook since its no longer needed on more recent versions. |
@axelrtgs is this only affecting Versions |
i can tell you for sure its affect some versions inside that range. i know we noticed it when first trying out 16 in the lab then found out the git resource got a rewrite and then when we went to prod with it we pinned to version 16.4.41 which seems to work fine now. it may have been fixed in a slightly earlier version. I can leave a not in the readme that theres a chef bug that affected the cookbook in that range and that we have confirmed >=16.4.41 to be working properly now |
Remove workaround for chef bug in git resource (fixes #289)
Thank you for providing me with useful information. |
🗣️ Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
👻 Brief Description
Looks like the git resources changes in chef 16 are at it again.
Cannot force update the current branch.
error is back again and this time it's using the legacydeploy
branch so i'm not sure how to fix this. I checked on the ruby-build repo and theres no branch called deploy there. Not sure if this is a cookbook or upstream issue but it would be nice to get a proper fix for this so it doesn't happen again.🥞 Cookbook version
2.4.0 (latest)
👩🍳 Chef-Infra Version
🎩 Platform details
Steps To Reproduce
Steps to reproduce the behavior:
add a simple ruby resource to the recipe:
🚓 Expected behavior
Successful converge
➕ Additional context
The text was updated successfully, but these errors were encountered: