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

Make theforeman-rubocop dev dep #917

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ofedoren
Copy link
Member

No description provided.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the precise benefit of this? I can understand you want it in a separate group, but right now it's not a runtime dependency anyway.

@ofedoren
Copy link
Member Author

ofedoren commented Sep 3, 2024

Well, theforeman-rubocop caused few issues for me: 1. It through dependencies requires latest concurrent-ruby, which causes problems with dynflow, which requires a specific version, thus making bundle install to fail under certain circumstances (noticed that during dev setup via forklift) 2. It depends on rather later rubocop, which causes issues for Ruby LSP plugin for VS Code :/ Currently all the rubocop stuff makes me hate it rather utilize...

Since rubocop is mostly used only in test environment, I'd love to exclude it from bundle install by default, but rather with some flag, like with groups. Now I think I should update PR to move it under :test group? But I'm not sure if it then will be installed in GHA though...

@ekohl
Copy link
Member

ekohl commented Sep 3, 2024

Well, theforeman-rubocop caused few issues for me: 1. It through dependencies requires latest concurrent-ruby, which causes problems with dynflow, which requires a specific version, thus making bundle install to fail under certain circumstances (noticed that during dev setup via forklift) 2. It depends on rather later rubocop, which causes issues for Ruby LSP plugin for VS Code :/ Currently all the rubocop stuff makes me hate it rather utilize...

I often have this feeling with Ruby gems. Specifically with concurrent-ruby I wonder how much of our usage could be replaced with Ruby 3's fibers but that's beyond the scope of this PR.

Now I think I should update PR to move it under :test group? But I'm not sure if it then will be installed in GHA though...

I often like to do this, except making it a :rubocop group. That way you can (but we don't do this today) run RuboCop in one job and the CI suite in another with minimal dependencies.

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

Successfully merging this pull request may close these issues.

2 participants