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 spork promote' nil error #218

Open
username-is-already-taken2 opened this issue Oct 18, 2017 · 2 comments
Open

'knife spork promote' nil error #218

username-is-already-taken2 opened this issue Oct 18, 2017 · 2 comments

Comments

@username-is-already-taken2

Hi there

I'm trying to use spork for the first time but I'm hitting an error could well be my setup :)

C:\chef-repo> chef exec knife spork promote sporker_env example_cookbook --remote -VV
INFO: Using configuration from C:/chef-repo/.chef/knife.rb
C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/knife-spork-1.6.3/lib/knife-spork/runner.rb:195:in `exist?': no implicit conversion of nil into String (TypeError)

I'm trying to workout whats missing. I saw on your repo you are now at 1.7.0, I currently have 1.6.3 which is included in my chefdk but I don't know how to get knife to use your updated gem

I've ran chef exec gem install knife-spork and that installed the new version but my knife command still uses 1.6.3

Sorry if its a bit vague, if it down to my setup, happy to do a pr to update docs or something to help pay it forward.

Thanks

Gary

@jonlives
Copy link
Owner

Is the knife command you're hitting definitely the one installed under chefdk?

@jonlives
Copy link
Owner

The error you're hitting is checking for the existence of a Berksfile specified in the "berksfile" attribute of your spork config by the way - do you have any value set there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants