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

very low factory_bot_rails max gem version - development mode #821

Open
prahal opened this issue Feb 19, 2023 · 1 comment
Open

very low factory_bot_rails max gem version - development mode #821

prahal opened this issue Feb 19, 2023 · 1 comment

Comments

@prahal
Copy link

prahal commented Feb 19, 2023

The Gemfile has in its development section:

-  gem 'factory_bot_rails', '< 5.0'

Debian stable bullseye is at minimum 5.1.1-2 for ruby-factory-bot-rails?
Could the minimum get increased?

The current maximum in Debian unstable is 6.2.0-1 so I set it to < 7. But I have no idea what this requirement is about, thus which value is safe.

The issue is also on the Debian side as Debian redmine postinst runs bundle --local --quiet without "development" and "test" skipped. Thus the Redmine postinst script requires the above development gems on each gem upgrade.
I believe this Debian behavior can be fixed. Still the dependency is really old. This might be aleftover.

@prahal
Copy link
Author

prahal commented Feb 20, 2023

Debian is not the issue. I reminded and verified that bundler requires all gems to be available at resolve time be they development, test, or production. The BUNDLE_WITHOUT is only for the installation step.

As Debian redmine runs bundle with --local it thus requires all gems to be installed before that step.

Having a 'factory_bot_rails' minimum version that supports Debian packaged version of this gem would be great.
Else one will have to package an old version of ruby-factory-bot-rails for current Debian releases.

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

No branches or pull requests

1 participant