git icon indicating copy to clipboard operation
git copied to clipboard

build-essential recipe not included in execution when git:source is included in a wrapper cookbook

Open Sauraus opened this issue 8 years ago • 3 comments

Cookbook version

4.4.1

Chef-client version

12.9.38 & 12.6.0

Platform Details

CentOS 6.7

Scenario:

Wrapper cookbook that include git::source

Steps to Reproduce:

Create a wrapper cookbook that has more than 1 cookbook dependent on 'build-essential'

Expected Result:

Compilation fails because 'cc' cannot be found.

Actual Result:

https://gist.github.com/Sauraus/d7f97bc674b472aa9abb058bcfc12e45#file-git-source-compilation-error-L77

Take note in the above log, the entire call to 'build-essential' as defined here: https://github.com/chef-cookbooks/git/blob/master/libraries/provider_git_client_source.rb#L10 is missing from the log. It looks like the chef-client decided to not execute the 'build-essential' recipe at that point because most likely it is being included in another recipe further down the chain.

Sauraus avatar Apr 28 '16 01:04 Sauraus

I also have this issue, CentOS 6.7, Chef 12.6.0

onlyhavecans avatar May 09 '16 18:05 onlyhavecans

Anyone from Chef around to look at this?

Sauraus avatar Jun 13 '16 23:06 Sauraus

Is this still a problem with the current version of the cookbook and current version of chef-client?

iennae avatar Oct 21 '17 02:10 iennae