Re: create release of cf-release failes due to ruby version error


Daniel Jones
 

Hi Neil,

I may be misunderstanding the nature of the problem, but could you use
chruby <https://github.com/postmodern/chruby> instead of rbenv? Its support
for .ruby_version is optional.

Regards,
Daniel Jones - CTO
+44 (0)79 8000 9153
@DanielJonesEB <https://twitter.com/DanielJonesEB>
*EngineerBetter* Ltd <http://www.engineerbetter.com> - UK Cloud Foundry
Specialists

On Tue, Aug 16, 2016 at 3:15 PM, Neil Watson <neil(a)watson-wilson.ca> wrote:

The cf-release repo returns an error about the ruby version being wrong,
but it's not really wrong. Worse, I can't change cf-release/.ruby_version
because later in the release creation process it runs a git command and git
errors out because of untracked changes. How do I get beyond this ruby
version error?

[root(a)np-cloud-found01 cf-release]# !bosh
bosh create release
rbenv: version `2.3' is not installed (set by /root/cf-release/.ruby-
version)
[
root(a)np-cloud-found01 cf-release]# cd ../
[root(a)np-cloud-found01 ~]# ruby --version
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.