-
Notifications
You must be signed in to change notification settings - Fork 898
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
Drop haml_lint to avoid deprecated haml constant #18886
Drop haml_lint to avoid deprecated haml constant #18886
Conversation
Followup to ManageIQ#18868 This a development dependency that can be added individually for anyone who needs it. The problem is `hamlit` tries to require `haml` in the template [here](https://github.com/k0kubun/hamlit/blob/94b14839cd42e8b70715ba7c0caf18c2c47ec67a/lib/hamlit/template.rb#L8) and because we have `haml` in our dependency tree due to `haml_lint` (for dev), it will be able to require it. Because this causes the rails 5.1 deprecated constant to be loaded, we get this deprecation warning: ``` DEPRECATION WARNING: ActionView::Template::Handlers::Erubis is deprecated and will be removed from Rails 5.2. Switch to ActionView::Template::Handlers::ERB::Erubi instead. (called from <top (required)> at /Users/joerafaniello/Code/manageiq/config/application.rb:31) ``` Since haml_lint doesn't have a version that forces haml >= 5.0 (where this is fixed), we have to either: * add haml it as a direct dependency so we can say >= 5.0 (like this PR) * drop haml_lint entirely (so haml doesn't get in the dependency tree) * ignore/live with this warning whenever you run tests or rails server/console/etc. This commit takes option 2, drop haml_lint since it's a dev dependency that can easily be added in bundler.d directory for any developers who want it.
Checked commit jrafanie@c2150da with ruby 2.3.3, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Followup to #18868
This a development dependency that can be added individually for anyone
who needs it.
The problem is
hamlit
tries to requirehaml
in the template hereand because we have
haml
in our dependency tree due tohaml_lint
(for dev), it will be able to require it.Because this causes the rails 5.1 deprecated constant to be loaded, we get this deprecation warning:
Since haml_lint doesn't have a version that forces haml >= 5.0 (where this is fixed), we have to either:
This commit takes option 2, drop haml_lint since it's a dev dependency
that can easily be added in bundler.d directory for any developers who want it.