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

Ruby version dependency for k8s-ruby #18

Closed
brettcurtis opened this issue Jan 20, 2024 · 0 comments
Closed

Ruby version dependency for k8s-ruby #18

brettcurtis opened this issue Jan 20, 2024 · 0 comments

Comments

@brettcurtis
Copy link
Contributor

❯ bundle install
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Could not find compatible versions

Because every version of yaml-safe_load_stream depends on Ruby ~> 2.3
  and k8s-ruby < 0.12.0 depends on yaml-safe_load_stream ~> 0.1,
  k8s-ruby < 0.12.0 requires Ruby ~> 2.3.
So, because k8s-ruby >= 0.15.1 depends on Ruby >= 2.4, <= 3.2.2
  and current Ruby version is = 3.3.0,
  version solving has failed.

k8s-ruby/k8s-ruby#49

This is not ideal; developers must maintain Ruby versions until this is fixed. As a W/A to run tests and Ruby LSP in our IDE:

brew install ruby-install chruby

Add to ~/.zshrc

source /home/linuxbrew/.linuxbrew/opt/chruby/share/chruby/chruby.sh
source /home/linuxbrew/.linuxbrew/opt/chruby/share/chruby/auto.sh
source ~/.zshrc
ruby-install 3.1.4
chruby ruby-3.1.4
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant