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

Trouble with the bump subcommand #143

Open
jmreicha opened this issue Sep 7, 2014 · 18 comments
Open

Trouble with the bump subcommand #143

jmreicha opened this issue Sep 7, 2014 · 18 comments

Comments

@jmreicha
Copy link

jmreicha commented Sep 7, 2014

I'm having trouble getting the knife spork bump command to work on a local cookbook.

Is there an example somewhere for how to use this correctly?

@jonlives
Copy link
Owner

jonlives commented Sep 7, 2014

@jmreicha the examples in the README (https://github.com/jonlives/knife-spork#spork-bump) show all of the permutations - can you elaborate a little more on exactly what issues you're having please?

@jmreicha
Copy link
Author

jmreicha commented Sep 7, 2014

Hmm, I must be missing something. For example, if I run (from the cookbook directory I'm working on)

knife spork bump my-cookbook

I get the following:

ERROR: TypeError: no implicit conversion of nil into String

Thanks for the prompt response.

@jonlives
Copy link
Owner

jonlives commented Sep 8, 2014

@jmreicha I'd hazard a guess that it's not finding your cookbook where it expects to. Could you please let me know what versions of Ruby / Chef / knife-spork you're using and gist the output of "knife spork info" please?

@jmreicha
Copy link
Author

jmreicha commented Sep 8, 2014

Sure, no problem.

ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]

chef -v
Chef Development Kit Version: 0.2.1

chef-client -v
Chef: 11.14.6

gem list | grep spork
knife-spork (1.4.1, 1.3.2)

knife spork gist - https://gist.github.com/jmreicha/79586aa9057394dfee70

Interestingly enough, I tried running knife spork on Ubuntu and got a different result.

@jmreicha
Copy link
Author

jmreicha commented Sep 9, 2014

@jonlives Just a quick update. From my Ubuntu machine (inside the cookbook directory I'm working on):

$ knife spork bump me-test-cookbook
ERROR: Berkshelf::BerksfileNotFound: Berkshelf::BerksfileNotFound

My Berksfile looks like this:

$ cat Berksfile
source "https://api.berkshelf.com"

metadata
$ berks -v
3.1.5
$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]

No ChefDK installed.

@iiro
Copy link

iiro commented Dec 11, 2014

I'm having the same issue...

Chef Development Kit Version: 0.3.2

ruby -v

ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

#145

knife spork info

Config Hash:
{}

Plugins:
KnifeSpork::Plugins::Campfire: disabled
KnifeSpork::Plugins::Eventinator: disabled
KnifeSpork::Plugins::Foodcritic: disabled
KnifeSpork::Plugins::Git: disabled
KnifeSpork::Plugins::Graphite: disabled
KnifeSpork::Plugins::Grove: disabled
KnifeSpork::Plugins::HipChat: disabled
KnifeSpork::Plugins::Irccat: disabled
KnifeSpork::Plugins::Jabber: disabled
KnifeSpork::Plugins::Rubocop: disabled
KnifeSpork::Plugins::Slack: disabled
KnifeSpork::Plugins::StatusNet: disabled

@PaulusTM
Copy link

I face the exact same issue when trying to bump the version. Tried several options with the cookbook path, but each time the same error: ERROR: TypeError: no implicit conversion of nil into String

ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
chef -v
Chef Development Kit Version: 0.3.5
chef-client -v
Chef: 11.16.4
gem list | grep spork
knife-spork (1.4.2)
knife spork info
http://git.io/3P26MQ

@jonlives jonlives added this to the Next Release milestone Jan 20, 2015
@jonlives
Copy link
Owner

@dpnl87 could you run knife with the -VV option and paste the stack trace it gave you please?

@PaulusTM
Copy link

@jonlives
Copy link
Owner

@dpnl87 brilliant thanks - I'll get this fixed and out in the next release, this month hopefully.

@jonlives
Copy link
Owner

@dpnl87 or @jmreicha I'm trying to get my info straight to replicate this. Could you please confirm / deny the following?

  • ERROR: TypeError: no implicit conversion of nil into String occurs with berkshelf installed?
  • ERROR: Berkshelf::BerksfileNotFound: Berkshelf::BerksfileNotFound also occurs with berkshelf installed?

@PaulusTM
Copy link

@jonlives I get ERROR: TypeError: no implicit conversion of nil into String with berkshelf installed

@jonlives
Copy link
Owner

@dpnl87 thanks for clarifying - I'll look into this.

@jonlives
Copy link
Owner

@jmreicha would you be able to gist the verbose output when you get the ERROR: Berkshelf::BerksfileNotFound: Berkshelf::BerksfileNotFound error please? I need to locate exactly where that's occurring in the code.

@jonlives jonlives modified the milestones: Next Release, Version 1.5.0 Jan 30, 2015
@jonlives
Copy link
Owner

Bumping this from "1.5.0" to "Next Release" milestone

@jonlives
Copy link
Owner

@jmreicha any possibility you could post the above requested output please? Would like to get a fix for this out in next version if possible.

@jmreicha
Copy link
Author

@jonlives I haven't looked at this in a looooong time.

I'll see if I can still get it to error but I may not be the best tester at this point.

@jonlives
Copy link
Owner

@jmreicha no worries!

@jonlives jonlives removed this from the Next Release milestone Aug 17, 2015
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

4 participants