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

Automatic Upgrades to ruby-build cannot see new Ruby definitions #138

Open
SeanSith opened this issue May 5, 2022 · 0 comments
Open

Automatic Upgrades to ruby-build cannot see new Ruby definitions #138

SeanSith opened this issue May 5, 2022 · 0 comments

Comments

@SeanSith
Copy link
Contributor

SeanSith commented May 5, 2022

🗣️ Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻 Brief Description

When a new release of ruby-build is released, this cookbook helpfully updates the ruby-build git repo in /var/cinc/cache, but when ruby_build_definition goes to run, it cannot see newly released versions of Ruby.

🥞 Cookbook version

2.2.2

👩‍🍳 Chef-Infra Version

Cinc-Client 16.18.0

🎩 Platform details

Ubuntu 20.04

Steps To Reproduce

Steps to reproduce the behavior:

  1. Have an existing server utilizing the ruby_build cookbook and a previous version of the ruby-build software installed.
  2. Create recipe with the following:
ruby_build_install
ruby_build_definition '3.1.2'
  1. Chef Client runs, updates ruby-build, attempts to install Ruby 3.1.2 (which was new as of the updated version of ruby-build).

Fails with 'cannot find definition for 3.1.2'

🚓 Expected behavior

Ruby 3.1.2 is installed successfully.

➕ Additional context

I believe that because of the not_if here, the install.sh script is not run when the cached ruby-build git repository gets upgraded, which keeps /usr/local/bin/ruby-build from being updated. This keeps it from seeing the new definitions.

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

1 participant