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 ror-installation.md #401

Closed
hendridg opened this issue Oct 27, 2021 · 4 comments
Closed

: ruby ror-installation.md #401

hendridg opened this issue Oct 27, 2021 · 4 comments
Assignees
Labels

Comments

@hendridg
Copy link

I make all steps, and the end when I put

bundle --local

return this error
Could not find gem 'puma (~> 5.0)' in rubygems repository https://rubygems.org/ or
installed locally.
The source contains the following versions of 'puma': 4.3.6

I check my version of puma and:

[hendrid@fedora app3]$ puma --version
puma version 5.5.2

I don't understand what happened.

To make an app I have to do this:

[hendrid@fedora app2]$ bundle config set --local path 'vendor/bundle'
[hendrid@fedora app2]$ bundle install

and then this

[hendrid@fedora app2]$ rails webpacker:install

@pvalena
Copy link
Contributor

pvalena commented Nov 12, 2021

Bundler by default does not use your locally installed dependencies, but rather "bundles" them in a separate directory. --local prevents that (no downloading from internet).

There may be an issue in Fedora let me reproduce that! (I'm a Fedora RoR maintainer).

@pvalena pvalena self-assigned this Nov 12, 2021
@pvalena pvalena added the bug label Nov 12, 2021
@pvalena
Copy link
Contributor

pvalena commented Jan 18, 2022

I've investigated, and found out that the issue is. It is caused by restriction in the Gemfile.

$ grep puma Gemfile
gem 'puma', '~> 5.0'

When on system:

$ gem list | grep puma
puma (4.3.6)

We do not modify the default app, or the dependencies. This needs to be adjusted per-app basis. Please note that this is not the only dependency that's diverged from upstream[*].

Unfortunately, in Fedora, there's still older Puma (but I'm working on puma update for Fedora as well).


[*] We can package only one package version per system, so the upgrades need to be made progressively, not to break other packages, while executing test suites for all packaged gems (that's why it's hard to update Fedora packages).

@pvalena
Copy link
Contributor

pvalena commented Jan 18, 2022

To conclude, it's quite easy to bundle --local the app, with few modifications to the gemfile (mostly commenting out useless dependencies):
https://gist.github.com/dac638543855de02ee3b59fec192e4bb

@pvalena pvalena closed this as completed Jan 18, 2022
@pvalena
Copy link
Contributor

pvalena commented Jan 18, 2022

@jackorp Feel free to modify the RoR page if you think there's missing something, based on this Issue. I can't see what's there to enhance, as we don't want to document per-rails version dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants