Chef windows annoyance of the day

“knife cookbook upload getting-started” fails under git bash (Ruby 1.8.7 or
1.9.2):

ERROR: Errno::ENOENT: No such file or directory - ruby -c
c:/chef/chef-repo/.chef/…/cookbooks/getting-started/metadata.rb

Works fine when run from standard Windows cmd.exe. Anything I can do to make it
work under git bash? The rest of my knife commands are working fine from there.

Are your cookbooks stored in "c:/chef/chef-repo/.chef/../cookbooks/" ?
That is where knife is looking for it

I think you need to add "-o <path_to_cookbook>" to knife command

On 6/1/11 10:52 PM, jes@ingineering.it wrote:

"knife cookbook upload getting-started" fails under git bash (Ruby 1.8.7 or
1.9.2):

ERROR: Errno::ENOENT: No such file or directory - ruby -c
c:/chef/chef-repo/.chef/../cookbooks/getting-started/metadata.rb

Works fine when run from standard Windows cmd.exe. Anything I can do to make it
work under git bash? The rest of my knife commands are working fine from there.

--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge

It's working fine today. Insanity has been attained.

On Thu, Jun 2, 2011 at 1:18 AM, Vladimir Girnet
vgirnet@tacitknowledge.comwrote:

Are your cookbooks stored in "c:/chef/chef-repo/.chef/../cookbooks/" ?
That is where knife is looking for it

I think you need to add "-o <path_to_cookbook>" to knife command

On 6/1/11 10:52 PM, jes@ingineering.it wrote:

"knife cookbook upload getting-started" fails under git bash (Ruby 1.8.7
or
1.9.2):

ERROR: Errno::ENOENT: No such file or directory - ruby -c
c:/chef/chef-repo/.chef/../cookbooks/getting-started/metadata.rb

Works fine when run from standard Windows cmd.exe. Anything I can do to
make it
work under git bash? The rest of my knife commands are working fine from
there.

--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com

Ha - now knife cookbook test fails in similar fashion. "knife cookbook
upload foo" works fine. "knife cookbook test foo" fails. Can't find
attributes/default.rb, ironically because that file in fact exists. Again,
fails in git bash but works in cmd.exe. I suppose tomorrow knife cookbook
test will start working :-(.

On Thu, Jun 2, 2011 at 2:04 PM, Jeffrey Sussna jes@ingineering.it wrote:

It's working fine today. Insanity has been attained.

On Thu, Jun 2, 2011 at 1:18 AM, Vladimir Girnet <
vgirnet@tacitknowledge.com> wrote:

Are your cookbooks stored in "c:/chef/chef-repo/.chef/../cookbooks/" ?
That is where knife is looking for it

I think you need to add "-o <path_to_cookbook>" to knife command

On 6/1/11 10:52 PM, jes@ingineering.it wrote:

"knife cookbook upload getting-started" fails under git bash (Ruby 1.8.7
or
1.9.2):

ERROR: Errno::ENOENT: No such file or directory - ruby -c
c:/chef/chef-repo/.chef/../cookbooks/getting-started/metadata.rb

Works fine when run from standard Windows cmd.exe. Anything I can do to
make it
work under git bash? The rest of my knife commands are working fine from
there.

--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com