build-essential recipe not included in execution when git:source is included in a wrapper cookbook
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 125
- Forks
- 170
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
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:
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with libraries/provider_git_client_source.rb and the wrapper cookbook scenario described in the issue, then compare the execution log with the linked reproduction gist. Reproduce the case with multiple cookbooks depending on build-essential; done means the build-essential recipe executes when git:source is included and cc is available during compilation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, ruby
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100