Skip to content
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

"knife cookbook site install" command is failed. #2317

Closed
morou opened this issue Oct 29, 2014 · 4 comments
Closed

"knife cookbook site install" command is failed. #2317

morou opened this issue Oct 29, 2014 · 4 comments
Labels
Status: Good First Issue An issue ready for a new contributor. Type: Bug Does not work as expected.

Comments

@morou
Copy link

morou commented Oct 29, 2014

I tried to install some cookbooks by using "knife cookbook site install" command in git repository that is initialized by "git init --separate-git-dir" command.
Then I got the following error.

ERROR: The cookbook repo /chef-repo/cookbooks is not a git repository.

Can I avoid this issue?

Reproduce steps.

  1. knife solo init chef-repo
  2. cd chef-repo
  3. git init --separate-git-dir
  4. git add .
  5. git commit -a -m "initial"
  6. knife cookbook site install yum
@smurawski
Copy link
Contributor

I submitted a pull request to deal with a separate git directory.

@smurawski smurawski added this to the Help Wanted milestone May 20, 2015
@dasgoll
Copy link

dasgoll commented Jun 8, 2015

I'm still getting this error. Was this fixed?

@thommay thommay added Type: Bug Does not work as expected. Type: Jump In and removed Bug labels Jan 25, 2017
@lamont-granquist
Copy link
Contributor

i'm not sure if this ever got fixed. knife cookbook site install is fairly deprecated, we don't recommend anyone use it, and if its still broken its likely that command will be retired before it gets fixed.

@nebffa
Copy link

nebffa commented Nov 22, 2017

Hey @lamont-granquist , I am quite shocked to read that as your docs really don't reflect it.

https://docs.chef.io/plugin_knife_supermarket.html says Only use knife supermarket if you are using a Chef 12.12 or earlier. If you are using Chef 12.13 or later, you should use the knife cookbook site commands. and the https://docs.chef.io/knife_cookbook_site.html docs make no mention that it's fairly deprecated. What should we use instead of knife cookbook site install?

@chef chef locked and limited conversation to collaborators Mar 20, 2018
@tas50 tas50 added Status: Good First Issue An issue ready for a new contributor. and removed Help: Good First Issue labels Jan 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Status: Good First Issue An issue ready for a new contributor. Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants