-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
removing rm -rf in chef-solo recipe_url #4545
Conversation
alternative for consideration, exit if the thing passed isn't a valid url? |
We don't do the rm_rf in the client code, and in order to synchronize the 'features' i strongly vote that the client version of this code wins -- either now, or in 13.0 |
see #3802 |
also the lack of stubs around the rm_rf in the unit tests blew away my chef github checkout once here: #2810 |
So, it has trolled me twice and destroyed data -- only one of which times it would have been avoided by the 'check for a real url', and its trolled @ranjib and @gionn when using it 'correctly' as well. The 'feature' is really indefensible. See also ValveSoftware/steam-for-linux#3671 |
I would be in favour of removing the |
The way it behaves now is terri-bad and I'm all for changing it. I just wonder how we even got to this situation. Did we change something in the config to make local mode work better and now |
see #2400 i forgot that i was the one that merged this... shell_out doesn't fail on the untar, but if there's already a cookbooks dir that you're extracting over then odd things could happen. |
781b7f5
to
fcc18aa
Compare
@chef/client-core okay this is a bit less angry now
|
also a bit of cleanup to use shell_out! more consistently, etc. there's probably a common method to extract here and put it in the superclass, but at the same time the local mode check and the cookbook-array junk in chef-solo make it different enough that i think i've spent enough time on this bit of code for now... |
👍 |
👍 modulo whatever travis trolling is going on |
s/travis trolling/rubocop trolling/ |
removing rm -rf in chef-solo recipe_url
old behavior back.
closes #3802
closes #1515
closes #1751