sous-chefs / sous-chefs/git

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

Open
#101 3 comments 0 reactions 0 assignees View on GitHub

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:

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.