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
I would like Nokogiri
to be installed only for those who need it through bundle install.
#48439
Comments
nokogiri
so please remove it!Nokogiri
to be installed only for those who need it through bundle install.
I don't actually need |
Rethink my environment and executed the following steps: bash-5.1# apk search ld-linux-aarch64.so.1 The following output is displayed: gcompat-1.0.0-r4 bash-5.1# apk add gcompat
(1/2) Installing musl-obstack (1.2.3-r0)
(2/2) Installing gcompat (1.0.0-r4)
OK: 349 MiB in 94 packages Add the following to your Dockerfile: apk --no-cache add
gcompat \ The version of Ruby is as follows: FROM ruby:3.1.0-alpine Install nokogiri as follows:
After that, you can run the following command: bash-5.1# rails s -p 3000 -b '0.0.0.0'
=> Booting Puma
=> Rails 7.0.5 application starting in development
=> Run `bin/rails server --help` for more startup options
[587] Puma starting in cluster mode...
[587] * Puma version: 6.3.0 (ruby 3.1.0-p0) ("Mugi No Toki Itaru")
[587] * Min threads: 5
[587] * Max threads: 5
[587] * Environment: development
[587] * Master PID: 587
[587] * Workers: 2
[587] * Restarts: (✔) hot (✖) phased
[587] * Preloading application
[587] * Listening on http://0.0.0.0:3000
[587] Use Ctrl-C to stop
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
`legacy_connection_handling` to `false` in your application.
The new connection handling does not support the `connection_handlers` getter and setter. Success🎉 but I think you should rethink that. |
Nokogiri is a dependency of Rails. It is used internally by various components (Action Pack, Action View, Action Text). That being said, something is weird with you setup. You would have an easier time using the regular base image instead of the alpine one. Switch |
Hi, There is no plan to remove Nokogiri from Rails as also explained #41016 We do not accept feature requests in the issue tracker, please join the discussion below if you are interested in this topic https://discuss.rubyonrails.org/t/nokogiri-as-a-default-dependency/74369 |
Steps to reproduce
I have obtained the following LOG
Expected behavior
execute
rails s -p 3000 -b '0.0.0.0'
Actual behavior
can not execute it OMG
System configuration
Rails version:
5.*
Ruby version:
3.1.0
Why do you need Nokogiri?
I don't need it. I don't require it.
Please delete it or tell me an alternative method.
The text was updated successfully, but these errors were encountered: