-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fix for The bundle currently has logstash-xxx-yyy locked at N when doing offline plugin install #10016
base: main
Are you sure you want to change the base?
Conversation
@guyboertje should I wait here for the tests before reviewing? |
@jsvd I suppose so. |
Two integration tests fail because the user_agent source yaml was changed in ua-parser/uap-core@6318cae |
Added #10017 |
sorry, I'm trying to understand how excluding the gems from the build and development groups in the package solves this problem. In the original issue the report comes from bundling many plugins and getting an error on "logstash-codec-plain" being locked, but that one isn't in either of those groups in plugins like the http input. |
@jsvd |
I think I'm starting to understand, so the PR fixes the issue by doing two things:
So 1. is pretty clear that it needs to happen: we need to unlock the Gemfile because we want to upgrade gems and those plugins may have runtime dependencies used by other plugins. However, it seems that when we unlock the Gemfile it performs extra validation on it, and it understands that there are a bunch of gems listed in the Gemfile that don't ship with logstash artifacts:
Filtering out those gems from the Gemfile before doing the update avoid falling into this situation. So it seems that combination of these two actions does solve the issue. My question here is: instead of skipping those gems during update, what if we just made sure that a release ships with a cleaner Gemfile that doesn't include those groups? |
I'm good with assuring that the Gemfile is build with runtime dependencies only. Do you know what changes to make to achieve that assurance? |
@jsvd this is blocked? |
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
At present the locking feature in Bundler is preventing version changes resulting in the unhelpful message.
See #8979
Why exclude build and development gems from the offline pack? I think that if these gems are somehow included in the released artefact then they should not be added to the offline pack, maybe?