Closed mal closed 10 years ago
Looks like thor only uses Pathname
for Thorfile
s, so I'm guessing the issue lies with busser ;(
Oh dear, I will check this out just as soon as I have an internet connection. Thank you for reporting!
I had a look at the diff of the Thor release, and I think it's an unintentional regression on their end, I've filed an issue here (erikhuda/thor#404).
+1 Just got the same issue in the last 5 minutes. This happened as soon as thor 0.19.0 got released.
@fnichol is there any way to control busser installation with something like a local Gemfile?
Here's what I did to continue my work in the meantime:
Login to the VM with kitchen login
and become root
$ sudo -i
root@default-ubuntu-1204 : ~
# /opt/chef/embedded/bin/gem uninstall thor
You have requested to uninstall the gem:
thor-0.19.0
busser-0.6.0 depends on [thor (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Remove executables:
thor
in addition to the gem? [Yn]
Removing thor
Successfully uninstalled thor-0.19.0
root@default-ubuntu-1204 : ~
[0] # /opt/chef/embedded/bin/gem install thor -v=0.18.1
Fetching: thor-0.18.1.gem (100%)
Successfully installed thor-0.18.1
1 gem installed
Installing ri documentation for thor-0.18.1...
Installing RDoc documentation for thor-0.18.1...
In this way I'm still able to work locally, obviously this won't work in CI environment.
It was slightly more work for me, but I got it working locally too;
vagrant@default-ubuntu-1204:~$ sudo -s
root@default-ubuntu-1204:~# BUSSER_ROOT="/tmp/busser" GEM_HOME="/tmp/busser/gems" GEM_PATH="/tmp/busser/gems" GEM_CACHE="/tmp/busser/gems/cache"
root@default-ubuntu-1204:~# export BUSSER_ROOT GEM_HOME GEM_PATH GEM_CACHE
root@default-ubuntu-1204:~# /opt/chef/embedded/bin/gem uninstall thor
You have requested to uninstall the gem:
thor-0.19.0
busser-0.6.0 depends on [thor (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Remove executables:
thor
in addition to the gem? [Yn] y
Removing thor
Successfully uninstalled thor-0.19.0
root@default-ubuntu-1204:~# /opt/chef/embedded/bin/gem install thor -v0.18.1 --no-rdoc --no-ri
Fetching: thor-0.18.1.gem (100%)
Successfully installed thor-0.18.1
1 gem installed
Confirmed this is an issue, I should have a relatively simple fix incoming, namely explicitly coercing the Pathname to a string before passing the result to #say
. I'm going to add the same sanity to the Busser::UI module as well for safety.
Released in 0.6.1, thank you for your help!
Cheers!
Got this when I just tried to use bats for the first time; apparently Thor 19 only got released in the last 20 minutes or so, so perhaps I'm just really unlucky.
I had a quick look at busser and thor to try and workout where the Pathname originated, but it's a lot of code to step through as both libs use pathname in some capacity.
Decided to make an issue now incase someone with more knowledge can see a trivial fix.