Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to use GIT as a profile source #172
chef-client running on windows 2012 R2
Using the same node I am able to use the audit cookbook and call compliance profiles hosted on the chef-compliance server but I am getting an error when trying to run the profiles directly from git
Steps to Reproduce:
Same cookbook I am changing enviroment attributes to reference my git repo
Should run my profile, I can run the profile successfully using inspec exec and the http://url to the same repo
chef-client run failes
@chris-rock No this server doesn't, I'll install it and give it ago.
I did try looking around the code to see how the git intergration works, but with my random clicking of files in the repo I wasn't able to determine that.
I was just thinking I might be able to raise a PR to fail with a better error if git was not found? Just thinking.
Anyway thanks for your help
@username-is-already-taken2 The git fetcher is implemented here https://github.com/chef/inspec/blob/master/lib/fetchers/git.rb#L149 It should output an appropriate error, but if you do not see it from the very beginning, we need to improve that.